[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user