]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib_arm/board.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / lib_arm / board.c
index 54f554b6d4dc567bad9035cee06d2ea19ea77747..af6af14db76e58fd9c7898a30eb4944119448571 100644 (file)
@@ -35,6 +35,8 @@
 void nand_init (void);
 #endif
 
+ulong monitor_flash_len;
+
 const char version_string[] =
        U_BOOT_VERSION" (" __DATE__ " - " __TIME__ ")";
 
@@ -204,6 +206,8 @@ void start_armboot (void)
        gd->bd = &bd_data;
        memset (gd->bd, 0, sizeof (bd_t));
 
+       monitor_flash_len = _armboot_end_data - _armboot_start;
+
        for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr) {
                if ((*init_fnc_ptr)() != 0) {
                        hang ();