summaryrefslogtreecommitdiffstats
path: root/rsnix/src/lib.rs
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-07-31 15:51:28 +0200
committersalmonik <salmonik@tuta.io>2026-07-31 15:51:28 +0200
commit5e03409586efc37931f07b40ee0c71a9a9e109f7 (patch)
treea1e6e014b94fb410ffce49a7611bf94295165729 /rsnix/src/lib.rs
parentrsboot: loader file buffers use LoaderData (2) instead of RuntimeData (6) (diff)
downloadrs-dos-5e03409586efc37931f07b40ee0c71a9a9e109f7.tar.gz
rs-dos-5e03409586efc37931f07b40ee0c71a9a9e109f7.zip
rsnix: memory management — free-list heap, bitmap pages, paging adoption
- uefi.rs: full EfiMemoryType constants (0-14) + memory_type_name(); fix MEMORY_TYPE_LOADER_DATA from 6 to 2 per the UEFI spec - memory.rs: replace the bump allocator with a first-fit free-list heap (splitting, coalescing, 8-byte back-pointer for alignment-safe free); add a bitmap physical page allocator (heap region reserved, page-0 guard, aligned runs); grow the heap from the page allocator on demand - paging.rs: identity page-table helpers — adopt_tables() rebuilds the firmware map into our own tables (OVMF maps its tables read-only, so the firmware tree can't be modified in place) and switches CR3; map_page/unmap_page/is_mapped with 2 MB/1 GB large-page splitting - main.rs: boot self-tests for heap, pages, and paging
Diffstat (limited to '')
-rw-r--r--rsnix/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/rsnix/src/lib.rs b/rsnix/src/lib.rs
index 0bc0cb9..d2dacf0 100644
--- a/rsnix/src/lib.rs
+++ b/rsnix/src/lib.rs
@@ -6,6 +6,7 @@ pub mod font;
6pub mod gop; 6pub mod gop;
7pub mod interrupts; 7pub mod interrupts;
8pub mod memory; 8pub mod memory;
9pub mod paging;
9pub mod ps2; 10pub mod ps2;
10pub mod serial; 11pub mod serial;
11pub mod uefi; 12pub mod uefi;