wire / wire-format / templeos-design

TempleOS system design (single-address-space, ring-0)

TempleOS is a 64-bit x86-64 OS with no kernel/user separation (all code runs in ring 0), single address space (no virtual memory, no MMU protection), cooperative multitasking (no preemption), and a JIT-compiled language (HolyC) that serves as both programming language and shell. Designed by Terry A. Davis (1993-2017).

wire-format kind wire-format status de-facto verification verified tier B wire-format@1

aka: TempleOS system design (single-address-space, ring-0)

wire format

spec: TempleOS (Terry A. Davis)

TempleOS is a 64-bit x86-64 OS with no kernel/user separation (all code runs in ring 0), single address space (no virtual memory, no MMU protection), cooperative multitasking (no preemption), and a JIT-compiled language (HolyC) that serves as both programming language and shell. Designed by Terry A. Davis (1993-2017).

fieldsizemeaning
Address spacesingle, 64-bitNo virtual memory. No MMU protection. All tasks share one address space. Pointers are physical addresses.
Protection ringsring 0 onlyNo kernel/user separation. All code runs in ring 0. No system calls (direct function calls).
MultitaskingcooperativeNo preemption. Tasks must voluntarily yield (Yield()). Simpler than preemptive but one runaway task freezes the system.
LanguageHolyC (JIT)JIT-compiled C-like language. No main() function. Top-level expressions execute during compilation (REPL-like). No linker — single compilation unit.
Graphics640x480, 16 colorsVGA mode 13h (or similar). 16-color palette. Designed per 'God's instructions' (per Davis).
Audiosingle voicePC speaker (single voice). No sound card support.
NetworkingnoneNo network drivers. Davis: 'networking would be reinventing the wheel.' Isolated by design.
FilesystemRedSea, FAT32, ISO 9660RedSea is native (flat namespace, no directories, compression). FAT32 and ISO 9660 for compatibility.
CompilerJITHolyC compiles to native x86-64 code on the fly. No separate compilation step. No linker.
Code size~100,000 linesEntire OS written by one person (Terry A. Davis) over ~15 years.

example:

00 00

TempleOS design (placeholder)


provenance

agent: curl -H 'accept: application/json' wire.phall.io/wire-format/templeos-design or /wire-format/templeos-design.json