From 19e22c84da154dad18517d19a1bfd9e72084408c Mon Sep 17 00:00:00 2001 From: salmonik Date: Fri, 31 Jul 2026 16:01:46 +0200 Subject: docs: CONTEXT.md — poweroff milestone, power.rs layout entry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CONTEXT.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CONTEXT.md b/CONTEXT.md index d509b0c..0074969 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -95,6 +95,7 @@ Single Rust crate (`x86_64-unknown-uefi` target). Module breakdown: - `memory.rs` — UEFI memory map, free-list heap allocator (grows from page allocator), bitmap page allocator - `paging.rs` — identity page-table helpers (map/unmap/query, large-page split) +- `power.rs` — `ResetSystem`-based shutdown, hlt loop fallback - `gop.rs` — framebuffer access and text rendering - `font.rs` — 8×16 bitmap font data - `ps2.rs` — PS/2 keyboard driver (polling) @@ -108,7 +109,7 @@ Single Rust crate (`x86_64-unknown-uefi` target). Module breakdown: ✅ **Serial** — UART 16550 at COM1, 115200 8N1 ✅ **Framebuffer** — GOP located, 8×16 bitmap font renders text ✅ **Keyboard** — PS/2 polling, scancode set 1, US QWERTY -✅ **Shell** — commands: `help`, `echo`, `clear`, `hello`, `info`, `mem`, `halt` +✅ **Shell** — commands: `help`, `echo`, `clear`, `hello`, `info`, `mem`, `halt`, `poweroff` ✅ **Heap allocator** — first-fit free-list with splitting + coalescing, `alloc`/`free` (boot-time self-test verifies alignment, reuse, and full coalescing) ✅ **Physical pages** — bitmap allocator over conventional regions, contiguous @@ -117,6 +118,8 @@ Single Rust crate (`x86_64-unknown-uefi` target). Module breakdown: own tables adopted at boot (boot-time self-test included) ✅ **Heap growth** — heap expands into the page allocator when exhausted ✅ **Shell** — `mmap` dumps the UEFI map, `stress` exercises alloc/free + growth +✅ **Poweroff** — `poweroff`/`exit` shut down via UEFI `ResetSystem` + (ACPI S5; `halt` keeps the plain hlt loop) ## Target audience -- cgit v1.2.3