paull-kernel(kernel the Snorkel-OS) 32‑bit x86 kernel from scratch
Protected mode, hardware interrupts, syscalls, rings 0/3, command line.
nasm -f bin boot.asm -o boot.bin
nasm -f bin kernel.asm -o kernel.bin
dd if=/dev/zero of=paull-kernel.img bs=512 count=2880
dd if=boot.bin of=paull-kernel.img bs=512 count=1 conv=notrunc
dd if=kernel.bin of=paull-kernel.img bs=512 seek=1 conv=notrunc
qemu-system-i386 -fda paull-kernel.img-
Protected mode (flat model, GDT, IDT)
-
Keyboard IRQ1 with scancode → ASCII
-
System calls int 0x80 (write, exit, getchar)
-
Command line with backspace, Enter
-
Magic sequences: hew → hello world, bye → goodbye cruel world, tu → Hello 231(tu)
-
Ring 3 switch on F1 with syscall demo
-
sudo reboot (password: admin)
-
FAT32 driver (read‑only)
-
Round‑robin multitasking
-
Paging (identity mapping)
-
64‑bit long mode
Questions?
Join Discussions or open an Issue.
🔗 Author: Paullknya
💬 Community forum: paullknya.github.io/
