zephyr/arch/x86/core/intel64
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
..
coredump.c coredump: add support for x86 and x86_64 2020-08-24 20:28:24 -04:00
cpu.c arch: x86_64: Rename _exception_stack to z_x86_exception_stack 2020-12-10 17:06:17 +02:00
fatal.c arch/x86: Add NMI registration API 2020-12-10 17:06:17 +02:00
irq.c arch/x86: Generalize dynamic irq connection on given vector 2020-12-08 09:29:20 -05:00
locore.S x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00
thread.c x86: paging code rewrite 2020-08-25 15:49:59 -04:00
userspace.S x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00