Research·November 22, 2026·7 min read

ZenithOS — x86_64 Robotics OS

Freestanding x86_64 kernel on Limine with /dev/ttyS0 VFS & Device Studio.

ZenithOS — x86_64 Robotics OS
Arch
x86_64 (Limine)
Isolation
Ring 3 User Mode
Serial
16550A /dev/ttyS0
Toolchain
Clang/LLVM + QEMU

Pipeline & core implementation

Architecture Pipeline
LimineKernel VFSRing 3Device Studio
What broke first: Unvalidated user pointers during early syscalls caused triple faults under QEMU; adding strict copy_from_user bounds checks and fault cleanup stabilized Ring 3.
uart_16550.c · C
void uart_write_byte(uint8_t c) {
  while ((inb(COM1_PORT + 5) & 0x20) == 0) {}
  outb(COM1_PORT, c);
}

Safe Ring 3 & VFS boundaries

ZenithOS boots directly from the Limine protocol into a 64-bit freestanding kernel (~1,500+ lines of C and x86_64 assembly). The bitmap physical memory allocator reports all 2047 MB of guest RAM, sets up 4-level paging, and isolates user shell commands inside Ring 3 with validated copy_from_user/copy_to_user boundary checks.

Zenith Device Studio over UART

Instead of stopping at a blank VGA console, I built a 16550A COM1 serial driver exposed through /dev/ttyS0 in the VFS plus a minimalist framebuffer windowing shell (zenith$ help, mem, uname, about). Telemetry frames can stream straight over UART to host debugging tools.

What remains: writable filesystem & SMP

QEMU boots reliably into the Ring 3 interactive shell, and PMM/VFS read primitives work. Still left to build: a writable initrd/ext2 storage driver, a preemptive APIC timer scheduler across multiple cores, and an ELF loader for standalone C robotics binaries.

Measured benchmarks

QEMU boot to shell< 400 msLimine x86_64GDB remote verified
Serial /dev/ttyS0115200 baud16550A UARTBounded VFS ring buffer

Project status & checklist

○ Needs work
Done
  • Limine x86_64 bootloader handoff, GDT/IDT & 4-level paging
  • Bitmap PMM (2047 MB mapped), /dev/ttyS0 16550A UART & Ring 3 interactive shell
  • Safe copy_from_user / FD teardown tested inside QEMU + GDB
Needs to be done
  • Add writable ext2 / FAT32 storage driver via AHCI or VirtIO-blk
  • Implement LAPIC timer preemptive multitasking & SMP core bring-up
  • Support loading standalone Ring 3 ELF binaries from disk