acompiled

The catalog contains seeded project examples. Your workspace stores your own projects and conversations.

kestrel-os/kestrel

Public
Star8

A small x86-64 kernel. Stage 0 goes from real mode to long mode inside the boot sector.

Code
Blame·2 commits across 16 linesoldernewer
2
3build/boot.bin: boot/boot.asm | build
4 $(NASM) -f bin -l build/boot.lst $< -o $@
Fail the build unless the sector is exactly 512 bytesSep 19 5 @test $$(wc -c < $@) -eq 512 || (echo "boot sector is not 512 bytes" && false)
7build:
8 mkdir -p build
9
10run: build/boot.bin
11 qemu-system-x86_64 -drive format=raw,file=build/boot.bin
12
13clean:
14 rm -rf build
15
16.PHONY: run clean