zephyr/arch/x86
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
..
core x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00
include x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00
zefi arch/x86: Make EFI copies bytewise 2020-10-13 14:07:24 -07:00
CMakeLists.txt
gen_gdt.py x86: add support for thread local storage 2020-10-24 10:52:00 -07:00
gen_idt.py
gen_mmu.py x86: use unused PTE bits when mapping memory 2020-11-05 09:33:40 -05:00
ia32.cmake
intel64.cmake
Kconfig arch: mem protect Kconfig cleanups 2020-11-18 08:02:08 -05:00
timing.c timing: do not repeatedly do init()/start()/stop() 2020-11-11 23:55:49 -05:00