zephyr/arch/x86/core
Andrew Boie 0a791b7a09 x86: mmu: clarify physical/virtual conversions
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>
2020-12-15 14:16:51 -05:00
..
ia32 x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00
intel64 x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00
offsets arch/x86: Use NMI stack for NMIs 2020-12-10 17:06:17 +02:00
acpi.c arch/x86: Expose function do get DRHDs from DMAR ACPI table 2020-12-08 09:29:20 -05:00
CMakeLists.txt x86_64: add support for thread local storage 2020-10-24 10:52:00 -07:00
common.S
cpuhalt.c
early_serial.c drivers/pcie: Change pcie_get_mbar() to return size and flags 2020-11-20 09:36:22 +02:00
fatal.c x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00
ia32.cmake x86: add support for thread local storage 2020-10-24 10:52:00 -07:00
intel64.cmake
Kconfig.ia32 x86: add support for thread local storage 2020-10-24 10:52:00 -07:00
Kconfig.intel64 x86: smp: add TLB shootdown logic 2020-11-05 09:33:40 -05:00
memmap.c
multiboot.c
pcie.c arch/x86: Support PCIE MSI-X 2020-12-08 09:29:20 -05:00
prep_c.c
reboot_rst_cnt.c
spec_ctrl.c
tls.c x86_64: add support for thread local storage 2020-10-24 10:52:00 -07:00
userspace.c x86: add support for common page tables 2020-11-05 09:33:40 -05:00
x86_mmu.c x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00