diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-07-08 18:30:42 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-07-23 23:57:44 +0200 |
commit | 244198ea8bdf592799ebfd430fe9ab165284e480 (patch) | |
tree | e25ec0f971ca0bf0c474e1144d3eb0155bca5c4a /arch/arm/boards/a9m2440 | |
parent | 218dffea800754dcbda323da1c99c7d90c9b9062 (diff) | |
download | barebox-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/a9m2440')
-rw-r--r-- | arch/arm/boards/a9m2440/a9m2440.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boards/a9m2440/a9m2440.c b/arch/arm/boards/a9m2440/a9m2440.c index 8975c15f18..6beb72eb71 100644 --- a/arch/arm/boards/a9m2440/a9m2440.c +++ b/arch/arm/boards/a9m2440/a9m2440.c @@ -28,6 +28,7 @@ #include <driver.h> #include <init.h> #include <asm/armlinux.h> +#include <asm-generic/sections.h> #include <generated/mach-types.h> #include <partition.h> #include <nand.h> @@ -158,7 +159,7 @@ device_initcall(a9m2440_devices_init); #ifdef CONFIG_S3C_NAND_BOOT void __bare_init nand_boot(void) { - s3c24x0_nand_load_image((void *)TEXT_BASE, 256 * 1024, 0); + s3c24x0_nand_load_image(_text, 256 * 1024, 0); } #endif |