mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[memory] Rework memory_initialize for new loader
Created a new `memory_initialize()` function that uses the new-style kernel args structure from the new bootloader. Additionally: * Fixed a hard-coded interrupt EOI address that didn't work with new memory locations * Make the `page_manager::fault_handler()` automatically grant pages in the kernel heap Tags: boot page fault
This commit is contained in:
@@ -36,6 +36,10 @@ struct page_table
|
||||
(entries[i] & 0x80) == 0x80;
|
||||
}
|
||||
|
||||
inline bool is_page(level l, int i) const {
|
||||
return (l == level::pt) || is_large_page(l, i);
|
||||
}
|
||||
|
||||
void dump(
|
||||
level lvl = level::pml4,
|
||||
bool recurse = true);
|
||||
|
||||
Reference in New Issue
Block a user