mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-31 14:40:54 +00:00
Genode code already expects MMU to be disabled when starting the kernel. It is enabled eventually in Bootstrap::Platform::enable_mmu, after setting up translation tables. Unfortunately nothing ensures this is actually the case. If MMU happens to be enabled when entering the kernel things go downhill pretty fast after we start messing with TTBR. This patch ensures MMU is disabled for EL1, EL2, EL3 dependent on the exception level of the CPU core, which is entering the kernel. This should allow base-hw to start correctly on Quartz64 A board.