diff options
author | Greg Ungerer <greg.ungerer@opengear.com> | 2011-09-09 22:23:34 +1000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-09-10 00:12:15 +0200 |
commit | 297f18ac0fbeef30ba1c17fe131ca75f09a6e7cf (patch) | |
tree | 6457d5b98b665a1b83685ef0afd4d752fcc012cb /board/cm4008 | |
parent | a34ebbdafe33e8078d58242062db0ec2554b8a73 (diff) | |
download | u-boot-297f18ac0fbeef30ba1c17fe131ca75f09a6e7cf.zip u-boot-297f18ac0fbeef30ba1c17fe131ca75f09a6e7cf.tar.gz u-boot-297f18ac0fbeef30ba1c17fe131ca75f09a6e7cf.tar.bz2 |
CM4000: fix broken flash base for OpenGear boards
Use _bss_start_ofs as the size of the boot loader code+data that we want
to protect in the flash. This replaces use of the no longer defined
_armboot_start.
Fixes:
flash.c: In function ‘flash_init’:
flash.c:75: error: ‘_bss_start’ undeclared (first use in this function)
flash.c:75: error: (Each undeclared identifier is reported only once
flash.c:75: error: for each function it appears in.)
flash.c:75: error: ‘_armboot_start’ undeclared (first use in this function)
Signed-off-by: <greg.ungerer@opengear.com>
Diffstat (limited to 'board/cm4008')
-rw-r--r-- | board/cm4008/flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/cm4008/flash.c b/board/cm4008/flash.c index d6fd519..2e1356f 100644 --- a/board/cm4008/flash.c +++ b/board/cm4008/flash.c @@ -72,7 +72,7 @@ unsigned long flash_init (void) */ flash_protect (FLAG_PROTECT_SET, CONFIG_SYS_FLASH_BASE, - CONFIG_SYS_FLASH_BASE + _bss_start - _armboot_start, + CONFIG_SYS_FLASH_BASE + _bss_start_ofs, &flash_info[0]); return size; |