summaryrefslogtreecommitdiff
path: root/board/cm4008/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/cm4008/flash.c')
-rw-r--r--board/cm4008/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/cm4008/flash.c b/board/cm4008/flash.c
index 251192839e7..8315a57ed9a 100644
--- a/board/cm4008/flash.c
+++ b/board/cm4008/flash.c
@@ -57,7 +57,7 @@ unsigned long flash_init (void)
*/
flash_protect (FLAG_PROTECT_SET,
CONFIG_SYS_FLASH_BASE,
- CONFIG_SYS_FLASH_BASE + _bss_start_ofs,
+ CONFIG_SYS_FLASH_BASE + (__bss_end - __bss_start),
&flash_info[0]);
return size;