[boot] Restructure boot paging and program loading

Restructuring paging into an object that carries its page cache with it
and makes for simpler code. Program loading is also changed to not copy
the pages loaded from the file into new pages - we can impose a new
constraint that anything loaded by boot have a simple, page-aligned
layout so that we can just map the existing pages into the right
addresses. Also included are some linker script changes to help
accommodate this.
This commit is contained in:
Justin C. Miller
2023-02-05 22:02:41 -08:00
parent aba45b9b67
commit ab31825ab3
16 changed files with 406 additions and 301 deletions

View File

@@ -129,13 +129,13 @@ struct args
util::counted<void> page_tables;
util::counted<mem_entry> mem_map;
util::counted<frame_block> frame_blocks;
program *kernel;
program *init;
program *panic;
allocation_register *allocations;
uintptr_t modules;
void const *symbol_table;
uintptr_t panic_handler;
util::buffer symbol_table;
program init;
uintptr_t init_modules;
void *runtime_services;
void *acpi_table;