mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-05 19:07:05 +00:00
The page table implementation requires conversion between virtual and physical addresses when creating and walking page tables. Add a phys_addr() and virt_addr() functions instead of hard-casting these values, plus a macro for doing the same in ASM code. Currently, all pages are identity mapped so VIRT_OFFSET = 0, but this will now still work if they are not the same. ASM language was also updated for 32-bit. Comments were left in 64-bit, as long mode semantics don't allow use of Z_X86_PHYS_ADDR macro; this can be revisited later. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com> |
||
---|---|---|
.. | ||
ia32 | ||
intel64 | ||
offsets | ||
acpi.c | ||
CMakeLists.txt | ||
common.S | ||
cpuhalt.c | ||
early_serial.c | ||
fatal.c | ||
ia32.cmake | ||
intel64.cmake | ||
Kconfig.ia32 | ||
Kconfig.intel64 | ||
memmap.c | ||
multiboot.c | ||
pcie.c | ||
prep_c.c | ||
reboot_rst_cnt.c | ||
spec_ctrl.c | ||
tls.c | ||
userspace.c | ||
x86_mmu.c |