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:
parent
b1eefc0c26
commit
ec70b2bc7a
7 changed files with 86 additions and 1 deletions
|
@ -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_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue