summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-03-08 14:19:48 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-03-23 07:43:28 +0100
commitbc0ee90816dfc38355d4839ef50938a0daf95578 (patch)
tree80f9b5187f2cd4b328d85a38c9dae9c7c76155a9 /arch
parent5fcc29680c804cd5ea84fe6a682f71e42c02ee97 (diff)
downloadbarebox-bc0ee90816dfc38355d4839ef50938a0daf95578.tar.gz
barebox-bc0ee90816dfc38355d4839ef50938a0daf95578.tar.xz
ARM: aarch64: mmu: drop ttb check when disabling the MMU
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@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/mmu_64.c3
1 files changed, 0 insertions, 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);