]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/cradle/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / cradle / flash.c
index 265b609648b2e6aa7d94ee5b0d21f9cbff6de109..463026d0ea89551d51120bf60c059ee353384969 100644 (file)
@@ -73,7 +73,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,