zephyr/arch/x86/core/ia32
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
..
cache_s.S
cache.c arch/x86: fix compilation errors 2020-10-14 13:27:23 -07:00
coredump.c
crt0.S x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00
excstub.S
fatal.c x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00
float.c
gdbstub.c
intstub.S power: remove SYS_ and sys_ prefixes 2020-12-09 15:18:29 -05:00
irq_manage.c
irq_offload.c
swap.S tracing: roll thread switch in/out into thread stats functions 2020-11-11 23:55:49 -05:00
thread.c
tls.c x86: add support for thread local storage 2020-10-24 10:52:00 -07:00
userspace.S x86: mmu: clarify physical/virtual conversions 2020-12-15 14:16:51 -05:00