diff options
-rw-r--r-- | board/cm4008/flash.c | 2 | ||||
-rw-r--r-- | board/cm41xx/flash.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/board/cm4008/flash.c b/board/cm4008/flash.c index d6fd5195d3..2e1356f9f4 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; diff --git a/board/cm41xx/flash.c b/board/cm41xx/flash.c index d6fd5195d3..2e1356f9f4 100644 --- a/board/cm41xx/flash.c +++ b/board/cm41xx/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; |