Constants§
- KERNEL_
ADDRESS_ SPACE_ START - KERNEL_
BASE - The kernel starts at -2GiB. The kernel image is loaded directly at this address, and the following space until the top of memory is managed dynamically and contains the boot info structures, memory map, and kernel heap.
- KERNEL_
P4_ ENTRY - Platforms using
Level4
paging schemes define this to set which P4 entry is duplicated across all page tables as the kernel’s entry. - KERNEL_
STACKS_ BASE - MAX_
TASKS - PHYSICAL_
MAP_ BASE - STACK_
SLOT_ SIZE
Functions§
- physical_
to_ virtual - Access a given physical address through the physical mapping. This cannot be used until the kernel page tables have been switched to.