-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kernel: mmu): offset map the first 1MiB
We previously identity mapped the first 1MiB of our address space because it contains physical addresses linked to hardware devices (VGA buffer). Problem is this first 1MiB of address space was not duplicated in each newly created page directory after that. Now, instead of going through the hassle of duplicating it, we offset_map it alongside the kernel's code during startup, and modified all references to it to now use the offseted address instead. Test: Use the VGA buffer without crashing, and test if VMM structures (that now use the first MiB) can be allocated correctly.
- Loading branch information
Showing
3 changed files
with
7 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters