Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 531a6a94 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Russell King
Browse files

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: default avatarNicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 34471a91
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -269,7 +269,8 @@ restart: adr r0, LC0
		 * of RAM and hope for the best.
		 * of RAM and hope for the best.
		 */
		 */
		cmp	r0, #1
		cmp	r0, #1
		sub	r0, r4, #(TEXT_OFFSET - 0x100)
		sub	r0, r4, #TEXT_OFFSET
		add	r0, r0, #0x100
		mov	r1, r6
		mov	r1, r6
		sub	r2, sp, r6
		sub	r2, sp, r6
		blne	atags_to_fdt
		blne	atags_to_fdt