[SOLVED] Setting up Paging in the Bootloader (UEFI)
Posted: Fri Dec 27, 2024 3:50 am
I am writing a hobby OS with it's own uefi-target x64 bootloader. In the UEFI specification it states that identity-mapped paging is enabled:
The kernel I am writing is supposed to be a higher-half kernel, thus I set up a new paging scheme in the loader that maps the kernel code pages, bootinformation, ... to higher half adddresses. But from what I know paging is usually set up in the kernel.
Are there any downsides to only setting it up in the loader?
https://uefi.org/specs/UEFI/2.10/02_Ove ... -platformsPaging mode is enabled and any memory space defined by the UEFI memory map is identity mapped (virtual address equals physical address), although the attributes of certain regions may not have all read, write, and execute attributes or be unmarked for purposes of platform protection. The mappings to other regions, such as those for unaccepted memory, are undefined and may vary from implementation to implementation.
The kernel I am writing is supposed to be a higher-half kernel, thus I set up a new paging scheme in the loader that maps the kernel code pages, bootinformation, ... to higher half adddresses. But from what I know paging is usually set up in the kernel.
Are there any downsides to only setting it up in the loader?