aarch64: userspace: Add support for page tables swapping

Introduce the necessary routines to have the user thread stack correctly
mapped and the functions to swap page tables on context switch.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
Carlo Caione 2020-11-26 12:57:36 +01:00 committed by Anas Nashif
commit ec70b2bc7a
7 changed files with 86 additions and 1 deletions

View file

@ -194,7 +194,11 @@ struct arm_mmu_ptables {
*/
extern const struct arm_mmu_config mmu_config;
struct k_thread;
void z_arm64_mmu_init(void);
void z_arm64_thread_pt_init(struct k_thread *thread);
void z_arm64_swap_ptables(struct k_thread *thread);
#endif /* _ASMLANGUAGE */
#endif /* ZEPHYR_INCLUDE_ARCH_ARM64_MMU_ARM_MMU_H_ */