A simple kernel. Porting to Zig 0.14 in progress.
Find a file
Sam Tebbs 0196ef7824 Merge pull request #21 from SamTebbs33/feature/multiboot-info
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
2019-05-21 20:27:26 +01:00
grub Start using the zig build system 2019-05-03 23:35:00 +01:00
src Pass multiboot magic and header to kmain 2019-05-19 17:39:27 +01:00
.gitignore Start using the zig build system 2019-05-03 23:35:00 +01:00
build.zig Separate arch-specific and arch-agnostic code 2019-05-13 21:10:03 +01:00
link.ld Add higher half support in linker script 2019-04-19 21:11:14 +01:00
README.md Start using the zig build system 2019-05-03 23:35:00 +01:00

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