summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/cpu/mpc85xx/u-boot.lds
diff options
context:
space:
mode:
authorPrabhakar Kushwaha <prabhakar@freescale.com>2014-03-31 15:31:34 +0530
committerYork Sun <yorksun@freescale.com>2014-04-22 17:58:51 -0700
commit0938b6094ee0389e3231db667d0263cac8bff258 (patch)
treea70909673f8f3ad62ccd58388825e6c15f6e5f55 /arch/powerpc/cpu/mpc85xx/u-boot.lds
parent18c0144542a73a735ab55f0f51e4a5a255e92c1a (diff)
downloadtalos-obmc-uboot-0938b6094ee0389e3231db667d0263cac8bff258.tar.gz
talos-obmc-uboot-0938b6094ee0389e3231db667d0263cac8bff258.zip
powerpc/mpc85xx:Avoid fix address of bootpg section
It is not necessary for bootpg to be present at text + 512KB. With increase of u-boot size (768KB), bootpg section's address cannot be fixed. Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc85xx/u-boot.lds')
-rw-r--r--arch/powerpc/cpu/mpc85xx/u-boot.lds6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/u-boot.lds b/arch/powerpc/cpu/mpc85xx/u-boot.lds
index b34d2125f7..0b9086dfd0 100644
--- a/arch/powerpc/cpu/mpc85xx/u-boot.lds
+++ b/arch/powerpc/cpu/mpc85xx/u-boot.lds
@@ -12,6 +12,10 @@
#define RESET_VECTOR_ADDRESS 0xfffffffc
#endif
+#ifndef CONFIG_SYS_MONITOR_LEN
+#define CONFIG_SYS_MONITOR_LEN 0x80000
+#endif
+
OUTPUT_ARCH(powerpc)
ENTRY(_start_e500)
@@ -85,7 +89,7 @@ SECTIONS
{
KEEP(arch/powerpc/cpu/mpc85xx/start.o (.bootpg))
} :text = 0xffff
- . = ADDR(.text) + 0x80000;
+ . = ADDR(.text) + CONFIG_SYS_MONITOR_LEN;
#else
.bootpg RESET_VECTOR_ADDRESS - 0xffc :
{
OpenPOWER on IntegriCloud