zephyr/arch
Andrew Boie f0ddbd7eee x86: abstract toplevel page table pointer
This patch is a preparatory step in enabling the MMU in
long mode; no steps are taken to implement long mode support.

We introduce struct x86_page_tables, which represents the
top-level data structure for page tables:

- For 32-bit, this will contain a four-entry page directory
  pointer table (PDPT)
- For 64-bit, this will (eventually) contain a page map level 4
  table (PML4)

In either case, this pointer value is what gets programmed into
CR3 to activate a set of page tables. There are extra bits in
CR3 to set for long mode, we'll get around to that later.

This abstraction will allow us to use the same APIs that work
with page tables in either mode, rather than hard-coding that
the top level data structure is a PDPT.

z_x86_mmu_validate() has been re-written to make it easier to
add another level of paging for long mode, to support 2MB
PDPT entries, and correctly validate regions which span PDPTE
entries.

Some MMU-related APIs moved out of 32-bit x86's arch.h into
mmustructs.h.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2019-10-04 15:53:49 -07:00
..
arc arch: arc: fix the bug in prologue of sys call handling 2019-10-01 09:22:30 -04:00
arm arm: arch code naming cleanup 2019-10-04 10:46:23 +02:00
common timing_info: rename globals 2019-09-30 15:25:55 -04:00
nios2 kernel: add arch abstraction for irq_offload() 2019-10-01 11:11:42 +02:00
posix cmake: toolchain abstraction for address sanitizer 2019-10-04 13:39:52 -04:00
riscv kernel: add arch abstraction for irq_offload() 2019-10-01 11:11:42 +02:00
x86 x86: abstract toplevel page table pointer 2019-10-04 15:53:49 -07:00
x86_64 kernel: add arch abstraction for irq_offload() 2019-10-01 11:11:42 +02:00
xtensa kernel: add arch abstraction for irq_offload() 2019-10-01 11:11:42 +02:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
Kconfig kconfig: Convert device tree chosen properties to new kconfigfunctions 2019-09-13 11:42:34 -05:00