mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[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:
@@ -7,10 +7,10 @@ uint32_t *apic_icr = reinterpret_cast<uint32_t*>(0xffffc000fee00300);
|
||||
void const *symbol_table = nullptr;
|
||||
|
||||
void
|
||||
install(uintptr_t entrypoint, const void *symbol_data)
|
||||
install(uintptr_t entrypoint, util::const_buffer symbol_data)
|
||||
{
|
||||
IDT::set_nmi_handler(entrypoint);
|
||||
symbol_table = symbol_data;
|
||||
symbol_table = symbol_data.pointer;
|
||||
}
|
||||
|
||||
} // namespace panic
|
||||
|
||||
Reference in New Issue
Block a user