Architecture

Five layers.
One Object Manager.

NeoDOS combines a monolithic kernel with a microkernel-style isolated driver subsystem. Dependencies only flow downwards and critical interfaces are frozen by contract.

hybrid kernelminimal Ring 0ABI v8
Boot flow

From UEFI to NeoShell

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.

text — boot sequence
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)
01

Bootloader

A UEFI application that initializes GOP, loads the kernel and disk image, exits Boot Services and hands over the final memory map.

02

Kernel

31 ordered initialization phases: CPU, memory, Object Manager, SMP, storage, drivers, networking, registry and services.

03

Userland

NeoInit starts as PID 1 and launches NeoShell in Ring 3. Every interactive command is an .NXE binary, not a Ring 0 shell.

Layers

Strict separation of responsibilities

A module belongs to exactly one layer and may only depend on lower layers. The rule is verified automatically on every build.

Arch (x86_64)

GDT, IDT, 4-level paging, SMP trampoline and all system assembly. It is the only layer that touches hardware directly.

HAL v0.4

Raw/safe split with 26 extern "C" primitives. Assembly is confined behind a stable interface consumed by the rest of the kernel.

System Services

Scheduler with 4 priorities, buddy + slab memory, Object Manager, VFS, IPC/pipes, async IRP, Event Bus and the NT6 security model.

NEM Driver Runtime

8-state certification pipeline, 12 capability flags, X4 isolation with 16 slots of 1 MB and a versioned per-driver ABI.

Syscall SSDT

RAX 0–99 SSDT with a 256-slot table, O(1) dispatch and a permission table separate from the handler table.

Dependency rule. Flow is always downwards: SSDT → system services → HAL → arch. neodev check-deps fails the build if a layer imports something it should not.
Subsystems

What lives inside the kernel

Every subsystem has its own design document and its own tests. None depends on another’s internal details.

Object Manager

The system’s central abstraction: object types, namespace, handles, URNs and security. Processes, files, devices, timers and services are named objects.

Scheduler

Four priorities with aging and work stealing. Per-CPU runqueues and an explicit commit point: SELECT → VALIDATE FRAME → COMMIT → DISPATCH.

Memory

Buddy frame allocator over the UEFI map, slab with per-CPU hot cache, demand paging and mmap on 4-level paging.

IPC and I/O

Pipes, async IRP, work queue and Event Bus. KWait unifies kernel waits to avoid ad-hoc mechanisms per subsystem.

Security

NT6 model with SID, Token, ACL, ACE and SeAccessCheck. Every object access goes through an explicit privilege check.

NEM drivers

Standalone drivers certified through 8 states, with 12 explicit capabilities and isolation in 16 slots of 1 MB. The kernel does not trust them.

Filesystem

NeoFS v2 with copy-on-write, VFS and IoStack, a hash + LRU page cache, and FAT32 for the boot ESP.

Networking

TCP/IP stack with sockets, ARP, DHCP and DNS. NICs integrate through NEM drivers and devices are exposed as objects.

Organization

An object-oriented model

The Object Manager (Ob) is the central abstraction. Syscalls operate on Ob handles, and every new syscall must be sys_ob_*.

  • Handles with per-object permissions, not global file descriptors.
  • Hierarchical namespace: \Device, \Registry, \Service, \Global.
  • Typed objects with queryable and mutable information classes.
  • Security built in: every handle is validated against the process token.
text — syscall SSDT
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 test
Storage

The whole system fits in one GPT image

NeoDev generates a single GUID-partitioned disk image: a FAT32 ESP for the bootloader and kernel, and a NeoFS partition for the system.

RegionContents
LBA 0Protective MBR
LBA 1–33GPT header + partition table
LBA 34–2047Alignment
LBA 2048–206847ESP / FAT32 — bootloader.efi + kernel.elf
LBA 206848–227327NeoDOS — NeoFS filesystem
EndBackup GPT
Experimental project. NeoDOS does not aim for binary compatibility with Linux or Windows, nor to replace them in production. It is a research and learning platform.
Invariants

The rules that are not negotiable

Code is truth

Documentation explains the design, it does not replicate the code. If the architecture changes, the docs change in the same commit.

Tests are specification

997 tests are not a metric: they are the executable specification of kernel behavior. If there is no test, the behavior is undefined.

Compatibility is a contract

Once a syscall, an ABI structure or a driver format is declared stable, it does not change. Semantic versioning applies to the kernel.

No Ring 0 shell

Anything that can live in Ring 3 does. The kernel provides mechanisms; policies and commands belong to userland.