Skip to content
Commit b0185189 authored by Daniel Leung's avatar Daniel Leung Committed by Alberto Escolar
Browse files

xtensa: mmu: fix page table initialization



xtensa_mmu_init() is called really early in the boot process
where the _kernel struct has not yet been initialized, and
thus we cannot use it to determine if the current CPU is
the boot CPU. In some cases, this may skip the call to
initialize the page tables which leaves us with incorrect
page table entries. Fix it by using a static variable to
determine whether the page tables have been initialized so
we only do it once per boot.

Fixes #76909

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent dfcc3b6d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment