[PATCH 1/2] ARM: DT: fix atags_to_fdt() second call site
Nicolas Pitre
nicolas.pitre at linaro.org
Tue Apr 10 14:21:38 EDT 2012
On Tue, 10 Apr 2012, Marc Zyngier wrote:
> atags_to_fdt() returns 1 when it fails to find a valid FDT signature.
> The CONFIG_ARM_ATAG_DTB_COMPAT code is supposed to retry with another
> location, but only does so when the initial call doesn't fail.
>
> Fix this by using the correct condition in the assembly code.
>
> Cc: Nicolas Pitre <nicolas.pitre at linaro.org>
> Signed-off-by: Marc Zyngier <marc.zyngier at arm.com>
D'Oh'ed-by: Nicolas Pitre <nico at linaro.org>
Cc: stable at vger.kernel.org
> ---
> arch/arm/boot/compressed/head.S | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S
> index 5f6045f..dc7e8ce 100644
> --- a/arch/arm/boot/compressed/head.S
> +++ b/arch/arm/boot/compressed/head.S
> @@ -273,7 +273,7 @@ restart: adr r0, LC0
> add r0, r0, #0x100
> mov r1, r6
> sub r2, sp, r6
> - blne atags_to_fdt
> + bleq atags_to_fdt
>
> ldmfd sp!, {r0-r3, ip, lr}
> sub sp, sp, #0x10000
> --
> 1.7.7.1
>
>
More information about the linux-arm-kernel
mailing list