summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/boot/boot-elf/bootstrap.S
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2014-10-02 20:03:27 +0200
committerMax Filippov <jcmvbkbc@gmail.com>2014-10-21 11:28:52 +0200
commitccd0ef38be3b9e0cc6efff407c53c43f648d598b (patch)
tree578c346322d590e459b02d6716068614eb88e930 /arch/xtensa/boot/boot-elf/bootstrap.S
parentxtensa: nommu: add MMU dependency to DEBUG_TLB_SANITY (diff)
downloadlinux-ccd0ef38be3b9e0cc6efff407c53c43f648d598b.tar.xz
linux-ccd0ef38be3b9e0cc6efff407c53c43f648d598b.zip
xtensa: nommu: fix Image.elf reset code and ld script
Don't hardcode kernel entry address as 0x3000 or 0xd0003000, use LOAD_MEMORY_ADDRESS macro. Don't compile MMU remapping code and don't try to link it when building noMMU configuration. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/boot/boot-elf/bootstrap.S')
-rw-r--r--arch/xtensa/boot/boot-elf/bootstrap.S10
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/xtensa/boot/boot-elf/bootstrap.S b/arch/xtensa/boot/boot-elf/bootstrap.S
index 1388a499753b..9341a5750694 100644
--- a/arch/xtensa/boot/boot-elf/bootstrap.S
+++ b/arch/xtensa/boot/boot-elf/bootstrap.S
@@ -20,6 +20,7 @@
#include <asm/page.h>
#include <asm/cacheasm.h>
#include <asm/initialize_mmu.h>
+#include <asm/vectors.h>
#include <linux/linkage.h>
.section .ResetVector.text, "ax"
@@ -34,12 +35,7 @@ _ResetVector:
.align 4
RomInitAddr:
-#if defined(CONFIG_INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX) && \
- XCHAL_HAVE_PTP_MMU && XCHAL_HAVE_SPANNING_WAY
- .word 0x00003000
-#else
- .word 0xd0003000
-#endif
+ .word LOAD_MEMORY_ADDRESS
RomBootParam:
.word _bootparam
_bootparam:
@@ -79,6 +75,7 @@ reset:
movi a4, 0
jx a0
+#ifdef CONFIG_MMU
.align 4
.section .ResetVector.remapped_text, "x"
@@ -102,3 +99,4 @@ _RemappedSetupMMU:
#endif
.end no-absolute-literals
+#endif