summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/lh7a40x
diff options
context:
space:
mode:
authorPo-Yu Chuang <ratbert@faraday-tech.com>2011-03-01 23:02:04 +0000
committerAlbert Aribaud <albert.aribaud@free.fr>2011-03-27 19:18:52 +0200
commitf326cbba98bae21d41df8daac0bd78121d557af1 (patch)
treef22e894ede1e38fd6d048367ba50d4c539860b1e /arch/arm/cpu/lh7a40x
parent44c6e6591cb451ae606f8bde71dd5fb7b4002544 (diff)
downloadblackbird-obmc-uboot-f326cbba98bae21d41df8daac0bd78121d557af1.tar.gz
blackbird-obmc-uboot-f326cbba98bae21d41df8daac0bd78121d557af1.zip
arm: fix incorrect monitor protection region in FLASH
Monitor protection region in FLASH did not cover .rel.dyn and .dynsym sections, because it uses __bss_start to compute monitor_flash_len. Use _end instead. Add _end to linker scripts for end of u-boot image Add _end_ofs to all the start.S. Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
Diffstat (limited to 'arch/arm/cpu/lh7a40x')
-rw-r--r--arch/arm/cpu/lh7a40x/start.S4
-rw-r--r--arch/arm/cpu/lh7a40x/u-boot.lds2
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/cpu/lh7a40x/start.S b/arch/arm/cpu/lh7a40x/start.S
index bd821a270d..81242b1ed4 100644
--- a/arch/arm/cpu/lh7a40x/start.S
+++ b/arch/arm/cpu/lh7a40x/start.S
@@ -89,6 +89,10 @@ _bss_start_ofs:
_bss_end_ofs:
.word __bss_end__ - _start
+.globl _end_ofs
+_end_ofs:
+ .word _end - _start
+
#ifdef CONFIG_USE_IRQ
/* IRQ stack memory (calculated at run-time) */
.globl IRQ_STACK_START
diff --git a/arch/arm/cpu/lh7a40x/u-boot.lds b/arch/arm/cpu/lh7a40x/u-boot.lds
index b15ab1e572..30934ff3e3 100644
--- a/arch/arm/cpu/lh7a40x/u-boot.lds
+++ b/arch/arm/cpu/lh7a40x/u-boot.lds
@@ -63,6 +63,8 @@ SECTIONS
*(.dynsym)
}
+ _end = .;
+
.bss __rel_dyn_start (OVERLAY) : {
__bss_start = .;
*(.bss)
OpenPOWER on IntegriCloud