Barebones x86 kernel written in Zig with a custom build system to run in Qemu.
Heavily based on the amazing Austin Hanson article. Bare Metal Zig
zig 0.14.0
To build the kernel:
zig build-exe src/freestanding.zig -target x86-freestanding -T linker.ld
You can run the kernel with Qemu:
qemu-system-x86_64 -kernel kernel