arm64: refine the code for primary core checking
We can find caller of z_arm64_mmu_init is on primary core or not, so no need to check mpidr, just add a function parameter. Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
This commit is contained in:
parent
a7daeebf0e
commit
7889364771
4 changed files with 7 additions and 7 deletions
|
@ -195,7 +195,7 @@ struct arm_mmu_ptables {
|
|||
extern const struct arm_mmu_config mmu_config;
|
||||
|
||||
struct k_thread;
|
||||
void z_arm64_mmu_init(void);
|
||||
void z_arm64_mmu_init(bool is_primary_core);
|
||||
void z_arm64_thread_pt_init(struct k_thread *thread);
|
||||
void z_arm64_swap_ptables(struct k_thread *thread);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue