[PATCH 45/78] ARM: aarch64: mmu: drop ttb check when disabling the MMU
Sascha Hauer
s.hauer at pengutronix.de
Fri Mar 16 05:53:21 PDT 2018
If the MMU is enabled then we should be able to disable it, no
matter if we initialized it in barebox or not. This change is not
really needed but helps when we are starting second stage from U-Boot
with the 'go' command which leaves the MMU enabled.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
arch/arm/cpu/mmu_64.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/arm/cpu/mmu_64.c b/arch/arm/cpu/mmu_64.c
index c8c3c9d84f..165ff5bac6 100644
--- a/arch/arm/cpu/mmu_64.c
+++ b/arch/arm/cpu/mmu_64.c
@@ -326,9 +326,6 @@ void mmu_disable(void)
{
unsigned int cr;
- if (!ttb)
- arm_mmu_not_initialized_error();
-
cr = get_cr();
cr &= ~(CR_M | CR_C);
--
2.16.1
More information about the barebox
mailing list