zephyr/tests/kernel/mem_protect
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
..
futex
mem_protect tests: exclude twr_ke18f platform from several user mode tests 2019-09-03 16:44:22 +02:00
obj_validation kernel: rename main/idle thread/stacks 2019-09-30 15:25:55 -04:00
protection tests: exclude twr_ke18f platform from several user mode tests 2019-09-03 16:44:22 +02:00
stack_random tests: Never disable SMP 2019-09-26 16:54:06 -04:00
stackprot tests: clean up fatal error handlers 2019-08-06 19:32:22 -07:00
sys_sem tests: Never disable SMP 2019-09-26 16:54:06 -04:00
syscalls tests/kernel/mem_protect/syscalls: Add cases to test 64 bit arguments 2019-09-12 11:31:50 +08:00
userspace userspace: Support for split 64 bit arguments 2019-09-12 11:31:50 +08:00
x86_mmu_api x86: abstract toplevel page table pointer 2019-10-04 15:53:49 -07:00