arm relocation: Fix calculation of board_init_r
authorAlexander Stein <alexander.stein@informatik.tu-chemnitz.de>
Thu, 3 Feb 2011 10:52:29 +0000 (10:52 +0000)
committerAlbert Aribaud <albert.aribaud@free.fr>
Mon, 21 Feb 2011 07:30:55 +0000 (08:30 +0100)
Signed-off-by: Alexander Stein <alexander.stein@informatik.tu-chemnitz.de>
arch/arm/cpu/arm926ejs/start.S

index eb93ac9db7d67a0c711d916ab955b945caee1533..f4c177e52310df808826cee15b5335f07e7cd8c5 100644 (file)
@@ -281,7 +281,7 @@ _nand_boot_ofs:
        .word nand_boot
 #else
        ldr     r0, _board_init_r_ofs
-       adr     r1, _start
+       ldr     r1, _TEXT_BASE
        add     lr, r0, r1
        add     lr, lr, r9
        /* setup parameters for board_init_r */