summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/eukrea_cpuimx25/lowlevel.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-07-08 18:30:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-07-23 23:57:44 +0200
commit244198ea8bdf592799ebfd430fe9ab165284e480 (patch)
treee25ec0f971ca0bf0c474e1144d3eb0155bca5c4a /arch/arm/boards/eukrea_cpuimx25/lowlevel.c
parent218dffea800754dcbda323da1c99c7d90c9b9062 (diff)
downloadbarebox-244198ea8bdf592799ebfd430fe9ab165284e480.tar.gz
barebox-244198ea8bdf592799ebfd430fe9ab165284e480.tar.xz
ARM boards: Use _text rather than TEXT_BASE
With compressed image support TEXT_BASE will become the base address of the uncompressed image. What the boards want instead is the base address of the decompressor code or, if not compressed, the base address of the uncompressed image. Use _text which is the correct one for both cases. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/eukrea_cpuimx25/lowlevel.c')
-rw-r--r--arch/arm/boards/eukrea_cpuimx25/lowlevel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/boards/eukrea_cpuimx25/lowlevel.c b/arch/arm/boards/eukrea_cpuimx25/lowlevel.c
index ff66e92ec4..89066e9998 100644
--- a/arch/arm/boards/eukrea_cpuimx25/lowlevel.c
+++ b/arch/arm/boards/eukrea_cpuimx25/lowlevel.c
@@ -42,7 +42,7 @@ static void __bare_init __naked insdram(void)
r = STACK_BASE + STACK_SIZE - 12;
__asm__ __volatile__("mov sp, %0" : : "r"(r));
- imx_nand_load_image((void *)TEXT_BASE, barebox_image_size);
+ imx_nand_load_image(_text, barebox_image_size);
board_init_lowlevel_return();
}
@@ -154,7 +154,7 @@ void __bare_init __naked board_init_lowlevel(void)
board_init_lowlevel_return();
src = (unsigned int *)IMX_NFC_BASE;
- trg = (unsigned int *)TEXT_BASE;
+ trg = (unsigned int *)_text;
/* Move ourselves out of NFC SRAM */
for (i = 0; i < 0x800 / sizeof(int); i++)