zephyr/arch
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
..
arc power: rename _sys_suspend/_sys_resume 2020-12-09 15:18:29 -05:00
arm intc: gic: Use SYS_INIT instead of custom init function 2020-12-11 10:17:27 -05:00
common timing: do not repeatedly do init()/start()/stop() 2020-11-11 23:55:49 -05:00
nios2 kernel: Cleanup logger setup in kernel files 2020-11-27 09:56:34 -05:00
posix posix: Add cpu_hold() function to better emulate code delay 2020-12-14 12:32:11 +01:00
riscv kernel: Cleanup logger setup in kernel files 2020-11-27 09:56:34 -05:00
sparc SPARC: add FPU support 2020-12-04 14:33:43 +02:00
x86 x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00
xtensa kernel: Cleanup logger setup in kernel files 2020-11-27 09:56:34 -05:00
CMakeLists.txt cmake: fix include directories to work with out-of-tree arch 2020-08-05 08:06:07 -04:00
Kconfig power: move kconfigs from arch/ to power/ 2020-12-09 15:18:29 -05:00