No description
- D 70.7%
- C 7.7%
- Shell 6%
- Python 5.7%
- Assembly 4.7%
- Other 5.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| arch/x86_64 | ||
| boot | ||
| docs | ||
| kernel | ||
| rt | ||
| tests | ||
| third_party/limine | ||
| tools | ||
| .gitignore | ||
| linker.ld | ||
| Makefile | ||
| README.md | ||
| SPEC.md | ||
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