]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
CM4000: fix broken flash base for OpenGear boards
authorGreg Ungerer <greg.ungerer@opengear.com>
Fri, 9 Sep 2011 12:23:34 +0000 (22:23 +1000)
committerWolfgang Denk <wd@denx.de>
Fri, 9 Sep 2011 22:12:15 +0000 (00:12 +0200)
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>
board/cm4008/flash.c
board/cm41xx/flash.c

index d6fd5195d30c4fa93bc3d196272831eed9a71826..2e1356f9f4a6d6f62676d0a96888ba99c4009b14 100644 (file)
@@ -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;
index d6fd5195d30c4fa93bc3d196272831eed9a71826..2e1356f9f4a6d6f62676d0a96888ba99c4009b14 100644 (file)
@@ -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;