Bootloader
A UEFI application that initializes GOP, loads the kernel and disk image, exits Boot Services and hands over the final memory map.
NeoDOS combines a monolithic kernel with a microkernel-style isolated driver subsystem. Dependencies only flow downwards and critical interfaces are frozen by contract.
The firmware loads the bootloader from the ESP; it loads the kernel ELF and the NeoFS image into memory, captures the final UEFI memory map and jumps to the kernel with a BootInfo structure.
UEFI Firmware (OVMF)
└─ GPT → ESP → /EFI/BOOT/BOOTX64.EFI
↓
NeoDOS Bootloader (UEFI application)
├─ GOP framebuffer + logging
├─ loads kernel.elf and its PT_LOAD segments
├─ loads the NeoFS image as a RAM disk
└─ ExitBootServices + BootInfo → kernel entry
↓
NeoDOS Kernel (x86_64-unknown-none)
├─ 31 phases: GDT/IDT, memory, Ob, SMP, drivers...
├─ mounts NeoFS at C: and the FAT32 ESP at A:
├─ kernel self-tests (997)
└─ starts services in dependency order
↓
NeoInit (PID 1) → NeoShell (Ring 3)A UEFI application that initializes GOP, loads the kernel and disk image, exits Boot Services and hands over the final memory map.
31 ordered initialization phases: CPU, memory, Object Manager, SMP, storage, drivers, networking, registry and services.
NeoInit starts as PID 1 and launches NeoShell in Ring 3. Every interactive command is an .NXE binary, not a Ring 0 shell.
A module belongs to exactly one layer and may only depend on lower layers. The rule is verified automatically on every build.
GDT, IDT, 4-level paging, SMP trampoline and all system assembly. It is the only layer that touches hardware directly.
Raw/safe split with 26 extern "C" primitives. Assembly is confined behind a stable interface consumed by the rest of the kernel.
Scheduler with 4 priorities, buddy + slab memory, Object Manager, VFS, IPC/pipes, async IRP, Event Bus and the NT6 security model.
8-state certification pipeline, 12 capability flags, X4 isolation with 16 slots of 1 MB and a versioned per-driver ABI.
RAX 0–99 SSDT with a 256-slot table, O(1) dispatch and a permission table separate from the handler table.
Every subsystem has its own design document and its own tests. None depends on another’s internal details.
The system’s central abstraction: object types, namespace, handles, URNs and security. Processes, files, devices, timers and services are named objects.
Four priorities with aging and work stealing. Per-CPU runqueues and an explicit commit point: SELECT → VALIDATE FRAME → COMMIT → DISPATCH.
Buddy frame allocator over the UEFI map, slab with per-CPU hot cache, demand paging and mmap on 4-level paging.
Pipes, async IRP, work queue and Event Bus. KWait unifies kernel waits to avoid ad-hoc mechanisms per subsystem.
NT6 model with SID, Token, ACL, ACE and SeAccessCheck. Every object access goes through an explicit privilege check.
Standalone drivers certified through 8 states, with 12 explicit capabilities and isolation in 16 slots of 1 MB. The kernel does not trust them.
NeoFS v2 with copy-on-write, VFS and IoStack, a hash + LRU page cache, and FAT32 for the boot ESP.
TCP/IP stack with sockets, ARP, DHCP and DNS. NICs integrate through NEM drivers and devices are exposed as objects.
The Object Manager (Ob) is the central abstraction. Syscalls operate on Ob handles, and every new syscall must be sys_ob_*.
RAX 0–99 → 256-slot SSDT table
dispatch → O(1), no linear search
permissions → table separate from handlers
contract → frozen ABI v8
# Every new syscall:
sys_ob_* → takes/returns Ob handles
→ never raw pointers into kernel
# Verification
neodev check-deps
neodev testNeoDev generates a single GUID-partitioned disk image: a FAT32 ESP for the bootloader and kernel, and a NeoFS partition for the system.
| Region | Contents |
|---|---|
| LBA 0 | Protective MBR |
| LBA 1–33 | GPT header + partition table |
| LBA 34–2047 | Alignment |
| LBA 2048–206847 | ESP / FAT32 — bootloader.efi + kernel.elf |
| LBA 206848–227327 | NeoDOS — NeoFS filesystem |
| End | Backup GPT |
Documentation explains the design, it does not replicate the code. If the architecture changes, the docs change in the same commit.
997 tests are not a metric: they are the executable specification of kernel behavior. If there is no test, the behavior is undefined.
Once a syscall, an ABI structure or a driver format is declared stable, it does not change. Semantic versioning applies to the kernel.
Anything that can live in Ring 3 does. The kernel provides mechanisms; policies and commands belong to userland.