summaryrefslogtreecommitdiff
path: root/lib_arm
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-05-30 12:48:29 +0000
committerwdenk <wdenk>2003-05-30 12:48:29 +0000
commit3b57fe0a70b903f4db66c558bb9828bc58acf06b (patch)
treeb8e415f6a1ff4e519534c8f7154307977e38b8db /lib_arm
parentf07771cc288eb86cad8f8a5c1aa593caf2ba26f8 (diff)
downloadu-boot-imx-3b57fe0a70b903f4db66c558bb9828bc58acf06b.zip
u-boot-imx-3b57fe0a70b903f4db66c558bb9828bc58acf06b.tar.gz
u-boot-imx-3b57fe0a70b903f4db66c558bb9828bc58acf06b.tar.bz2
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
instead CFG_MONITOR_LEN is now only used to determine _at_compile_ _time_ (!) if the environment is embedded within the U-Boot image, or in a separate flash sector. * Cleanup CFG_DER #defines in config files (wd maintained only)
Diffstat (limited to 'lib_arm')
-rw-r--r--lib_arm/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib_arm/board.c b/lib_arm/board.c
index 54f554b..af6af14 100644
--- a/lib_arm/board.c
+++ b/lib_arm/board.c
@@ -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 ();