]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/smdk2410/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / smdk2410 / flash.c
index c2ec2354b6d922ab9be39c7cfd9eeada57ee554b..5d04ed43d7453c4b381c16ab6eb6f21764949e09 100644 (file)
@@ -113,7 +113,7 @@ ulong flash_init(void)
 
     flash_protect(FLAG_PROTECT_SET,
                  CFG_FLASH_BASE,
-                 CFG_FLASH_BASE + _armboot_end_data - _armboot_start,
+                 CFG_FLASH_BASE + monitor_flash_len - 1,
                  &flash_info[0]);
 
     flash_protect(FLAG_PROTECT_SET,