]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/csb226/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / csb226 / flash.c
index c6cb95e2f348cb8ef400c9afd830d79d70d0c5b6..0ee78e6f2fc3cb5065e4a731a8b1074ea8d3e38d 100644 (file)
@@ -74,7 +74,7 @@ ulong flash_init(void)
        /* Protect monitor and environment sectors */
        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,