From: Afzal Mohammed Date: Thu, 20 Oct 2011 18:32:07 +0000 (+0100) Subject: ARM: 7137/1: Fix error upon adding LL debug X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b55fa18817743c3c4aef14f0c6fc0e21d7bc1e62;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ARM: 7137/1: Fix error upon adding LL debug Upon adding new board LL debug support, if the resultant code addition would not cause PC relative offset of "hexbuf" from "adr r2, hexbuf" (+2) instruction to be representable in a shifted 8-bit value (hence indirectly putting higher aligment requirement on larger offsets), following error occurs, arch/arm/kernel/debug.S: Assembler messages: arch/arm/kernel/debug.S:138: Error: invalid constant (428) after fixup Fix it by bringing "hexbuf" closer so that "adr" can have the offset. Signed-off-by: Afzal Mohammed Acked-by: Tony Lindgren Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/debug.S b/arch/arm/kernel/debug.S index bcd66e00bdbe..0f852d082fcf 100644 --- a/arch/arm/kernel/debug.S +++ b/arch/arm/kernel/debug.S @@ -151,6 +151,8 @@ printhex: adr r2, hexbuf b printascii ENDPROC(printhex2) +hexbuf: .space 16 + .ltorg ENTRY(printascii) @@ -175,5 +177,3 @@ ENTRY(printch) mov r0, #0 b 1b ENDPROC(printch) - -hexbuf: .space 16