No description
  • D 70.7%
  • C 7.7%
  • Shell 6%
  • Python 5.7%
  • Assembly 4.7%
  • Other 5.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-14 23:41:05 +01:00
arch/x86_64 P0: boot via Limine, serial console, GDT/TSS/IDT, buddy allocator, W^X kernel page tables, x2APIC timers, SMP bring-up, QEMU and host tests 2026-11-14 23:36:13 +01:00
boot P0: boot via Limine, serial console, GDT/TSS/IDT, buddy allocator, W^X kernel page tables, x2APIC timers, SMP bring-up, QEMU and host tests 2026-11-14 23:36:13 +01:00
docs P0: Linux baseline benchmarks, trusted-code inventory, buddy side tables, docs; spec updated with measurements 2026-11-14 23:40:49 +01:00
kernel P0: boot via Limine, serial console, GDT/TSS/IDT, buddy allocator, W^X kernel page tables, x2APIC timers, SMP bring-up, QEMU and host tests 2026-11-14 23:36:13 +01:00
rt P0: boot via Limine, serial console, GDT/TSS/IDT, buddy allocator, W^X kernel page tables, x2APIC timers, SMP bring-up, QEMU and host tests 2026-11-14 23:36:13 +01:00
tests P0: boot via Limine, serial console, GDT/TSS/IDT, buddy allocator, W^X kernel page tables, x2APIC timers, SMP bring-up, QEMU and host tests 2026-11-14 23:36:13 +01:00
third_party/limine P0: boot via Limine, serial console, GDT/TSS/IDT, buddy allocator, W^X kernel page tables, x2APIC timers, SMP bring-up, QEMU and host tests 2026-11-14 23:36:13 +01:00
tools P0: Linux baseline benchmarks, trusted-code inventory, buddy side tables, docs; spec updated with measurements 2026-11-14 23:40:49 +01:00
.gitignore P0: boot via Limine, serial console, GDT/TSS/IDT, buddy allocator, W^X kernel page tables, x2APIC timers, SMP bring-up, QEMU and host tests 2026-11-14 23:36:13 +01:00
linker.ld P0: boot via Limine, serial console, GDT/TSS/IDT, buddy allocator, W^X kernel page tables, x2APIC timers, SMP bring-up, QEMU and host tests 2026-11-14 23:36:13 +01:00
Makefile P0: boot via Limine, serial console, GDT/TSS/IDT, buddy allocator, W^X kernel page tables, x2APIC timers, SMP bring-up, QEMU and host tests 2026-11-14 23:36:13 +01:00
README.md P0: Linux baseline benchmarks, trusted-code inventory, buddy side tables, docs; spec updated with measurements 2026-11-14 23:40:49 +01:00
SPEC.md Spec: x2APIC requirement 2026-11-14 23:41:05 +01:00

dkernel

A capability-based microkernel and desktop OS in D (LDC, -betterC). Design: SPEC.md. Measurements: docs/baseline.md.

Status: phase P0 (toolchain spike) — boots through Limine on UEFI, brings up all CPUs with their own descriptor tables, stacks and x2APIC timers, runs on its own W^X page tables, and manages physical memory with a buddy allocator.

Requirements (Fedora)

ldc 1.42, clang, lld, qemu-system-x86_64 with KVM, edk2-ovmf. Limine's UEFI binary is vendored in third_party/limine (see VERSION there).

Use

make              # build/kernel.elf
make run          # boot in QEMU: 16 vCPUs, 2 GiB, serial on stdio
make test         # QEMU boot tests: boot, pagefault, wx
make host-test    # host unit tests of pure modules
tools/bench/linux/run.sh   # Linux baseline numbers on this machine
tools/trusted_inventory.py # lines of @system/@trusted code per file

QEMU boot tests pass test=<name> on the kernel command line; the kernel prints PASS <name> and exits QEMU through isa-debug-exit (status 33 = passed, 35 = failed). Logs: build/test-<name>.log.

Layout

arch/x86_64/   CPU instructions, GDT/TSS, IDT + entry stubs, x2APIC, PIT, page tables, per-CPU data
kernel/        boot protocol, console, memory (buddy, physical, kernel map), SMP, interrupts, tests
rt/            minimal object.d and the C memory routines the compiler calls
tests/         host unit tests and QEMU boot tests
tools/         Limine refresh, Linux baseline benchmarks, trusted-code inventory