A simple kernel. Porting to Zig 0.14 in progress.
0196ef7824
This patch passes the multiboot header address and bootloader magic number provided by grub to the kmain function, and checks the magic number to make sure it is correct before initialising the rest of the system. Closes #19 |
||
---|---|---|
grub | ||
src | ||
.gitignore | ||
build.zig | ||
link.ld | ||
README.md |
Pluto
Build
Requires xorriso and the grub tools (such as grub-mkrescue).
mkdir -p bin/kernel
mkdir -p bin/iso/boot/grub
zig build
Note that the mkdir
invocations are only needed once. See zig build --help
for a list of options.
Run
zig build run
To debug the kernel:
zig build run -Ddebug=true
zig build debug
Test
zig build test