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 tracing: move headers under include/tracing 2020-02-07 15:58:05 -05:00
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 coredump: add support for x86 and x86_64 2020-08-24 20:28:24 -04:00
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 x86: don't define _image_rom_* unless XIP 2020-09-30 14:14:07 -07:00
multiboot.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
pcie.c arch/x86: Support PCIE MSI-X 2020-12-08 09:29:20 -05:00
prep_c.c mmu: support only identity RAM mapping 2020-09-03 14:24:38 -04:00
reboot_rst_cnt.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
spec_ctrl.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
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