22

Hobby x86 kernel written with Zig

 4 years ago
source link: https://github.com/jzck/kernel-zig
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

hobby kernel in zig

features

  • 80x25 frame buffer
  • ps2 keyboard driver
  • terminal console
  • lspci
  • x86
    • MMU
    • interrupts

dependencies

How to

compile

zig build compiles and links the multiboot kernel (without a bootloader)

test

./qemu.sh start
./qemu.sh monitor
./qemu.sh gdb

Notes

interrupt call chain

interrupt -> idt[n] -> isrN -> isrDispatch -> handlers[n] (default unhandled() )


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK