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@xxxxxxxxxxxxxx> --- 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 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox