summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-10-03 12:23:41 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-03 16:10:04 +0200
commitc05511d6cdbcddf32d41d4036e49af8a9c18832d (patch)
tree6311d4a2f28271ed2cd30f05ce1aa6d730c6db89
parent80e91f08e72f280a2204bcd0a7e14b094e321de6 (diff)
downloadbarebox-c05511d6cdbcddf32d41d4036e49af8a9c18832d.tar.gz
ARM: Disable MMU feature in PBL
remap_cache currently does not work, so enabling the MMU in the PBL currently does not make sense. Disable it for now. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/cpu/start-pbl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/cpu/start-pbl.c b/arch/arm/cpu/start-pbl.c
index 932a3da..3bd520c 100644
--- a/arch/arm/cpu/start-pbl.c
+++ b/arch/arm/cpu/start-pbl.c
@@ -116,7 +116,11 @@ static void mmu_disable(void)
static void barebox_uncompress(void *compressed_start, unsigned int len)
{
void (*barebox)(void);
- int use_mmu = IS_ENABLED(CONFIG_MMU);
+ /*
+ * remap_cached currently does not work rendering the feature
+ * of enabling the MMU in the PBL useless. disable for now.
+ */
+ int use_mmu = 0;
/* set 128 KiB at the end of the MALLOC_BASE for early malloc */
free_mem_ptr = MALLOC_BASE + MALLOC_SIZE - SZ_128K;