diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2011-10-24 08:30:32 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-10-24 15:53:50 -0400 |
commit | 531a6a941745e1e045dd2a6bd09e1dc01247a5f3 (patch) | |
tree | d90e1ee69a00f649488e5599325e2dc89d7e345c /arch/arm/boot | |
parent | 34471a9168c8bfd7f0d00989a7b0797ad27d585e (diff) |
ARM: 7139/1: fix compilation with CONFIG_ARM_ATAG_DTB_COMPAT and large TEXT_OFFSET
If TEXT_OFFSET is too large (e.g. like on MSM) the resulting immediate
argument gets wider than 8 bits.
Noticed by David Brown <davidb@codeaurora.org>
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r-- | arch/arm/boot/compressed/head.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S index 9f5ac11ccd8e..c2effc917254 100644 --- a/arch/arm/boot/compressed/head.S +++ b/arch/arm/boot/compressed/head.S | |||
@@ -269,7 +269,8 @@ restart: adr r0, LC0 | |||
269 | * of RAM and hope for the best. | 269 | * of RAM and hope for the best. |
270 | */ | 270 | */ |
271 | cmp r0, #1 | 271 | cmp r0, #1 |
272 | sub r0, r4, #(TEXT_OFFSET - 0x100) | 272 | sub r0, r4, #TEXT_OFFSET |
273 | add r0, r0, #0x100 | ||
273 | mov r1, r6 | 274 | mov r1, r6 |
274 | sub r2, sp, r6 | 275 | sub r2, sp, r6 |
275 | blne atags_to_fdt | 276 | blne atags_to_fdt |