Skip to content
Commit 0a0061d9 authored by Carlo Caione's avatar Carlo Caione Committed by Anas Nashif
Browse files

aarch64: mmu: Do not assume a single set of pagetables is used



The MMU code is currently assuming that Zephyr only uses one single set
of page tables shared by kernel and user threads. This could possibly be
not longer true in the future when multiple set of page tables can be
present and swapped at run-time.

With this patch a new arm_mmu_ptables struct is introduced that is used
to host a buffer pointing to the memory region containing the page
tables and the helper variables used to manage the page tables. This new
struct is then used by the ARM64 MMU code instead of assuming that the
kernel page tables are the only ones present.

Signed-off-by: default avatarCarlo Caione <ccaione@baylibre.com>
parent 1a4a73da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment