summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRob Herring <r.herring@freescale.com>2010-03-18 17:40:33 -0500
committerAlejandro Gonzalez <alex.gonzalez@digi.com>2010-05-25 11:20:14 +0200
commit829c7b9e801ec12346b78a7ca2313aae1d32f874 (patch)
tree7ab7f424fc2c07d66c91f3df570e460a35582b04 /arch
parentdd0bb6cc397abf9c120d90d1180c0243653ef90a (diff)
ENGR00121762-2: arm: always get phys_offset from stack pointer for MX5
Allow r3 to be unset on MX5x platforms for runtime physoffset Signed-off-by: Rob Herring <r.herring@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boot/compressed/head.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S
index 4a7649025228..bd8847683786 100644
--- a/arch/arm/boot/compressed/head.S
+++ b/arch/arm/boot/compressed/head.S
@@ -254,7 +254,11 @@ not_relocated: mov r0, #0
* - sp < physoffset + 128MiB (which is definitely true if you
* only have 128MiB of RAM or less)
*/
+#ifdef CONFIG_ARCH_MX5
+ and r9, sp, #0xf8000000
+#else
andne r9, sp, #0xf8000000
+#endif
#ifdef DEBUG
kputc #'P'
kphex r9, 8