Lab / 01

DarrenOS

A small operating system for learning what happens between a bootloader handing over control and the first user program making a system call.

DarrenOS serial log showing the kernel boot, system calls and a user-mode exception handled by the kernel
Serial output from the project’s headless v86 boot verification.
Field
Operating systems
Platform
32-bit x86 · C and NASM · v86
Status
Hobby kernel

Engineering notes

From boot to user mode

GRUB loads the kernel. The entry point builds a stack before handing control from assembly to C. From there the kernel sets up page tables, interrupt handlers, a timer and a serial console.

Give processes a boundary

The kernel reads ELF programs from an initial RAM filesystem and gives each its own page directory. A round-robin scheduler moves between tasks and a small system-call interface handles writes, clock ticks and exit.

Verify the failure path

A deliberately faulting user program exercises exception handling. The headless v86 test reads the serial console to verify that the kernel terminates the task and remains responsive. The serial log makes boot and failure behaviour repeatable to inspect.