summaryrefslogtreecommitdiff
path: root/common/env_common.c
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2007-03-11 13:48:24 +0100
committerMichal Simek <monstr@monstr.eu>2007-03-11 13:48:24 +0100
commitcfc67116a706fd18b8f6a9c11a16753c5626d689 (patch)
treea8ece1d13504912339bd59cbbc5d29c74c1def4d /common/env_common.c
parent76316a318de91f6184e7c22a10e02d275ade2441 (diff)
downloadu-boot-imx-cfc67116a706fd18b8f6a9c11a16753c5626d689.zip
u-boot-imx-cfc67116a706fd18b8f6a9c11a16753c5626d689.tar.gz
u-boot-imx-cfc67116a706fd18b8f6a9c11a16753c5626d689.tar.bz2
[Microblaze][PATCH] part 2
timer support interrupt controller support flash support ethernet support cache support board information support env support booting image support adding support for Xilinx ML401
Diffstat (limited to 'common/env_common.c')
-rw-r--r--common/env_common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/env_common.c b/common/env_common.c
index eb33422..6e193cf 100644
--- a/common/env_common.c
+++ b/common/env_common.c
@@ -222,6 +222,14 @@ void env_relocate (void)
DEBUGF ("%s[%d] malloced ENV at %p\n", __FUNCTION__,__LINE__,env_ptr);
#endif
+#ifdef CONFIG_MICROBLAZE
+ /*
+ * FIXME MALLOC error for Microblaze - error malloc return
+ * bad value. Correct value is CFG_MONITOR_BASE - CFG_MALLOC_LEN.
+ */
+ env_ptr = (env_t *)CFG_MONITOR_BASE;
+ DEBUGF ("%s[%d] malloced ENV at %p\n", __FUNCTION__,__LINE__,env_ptr);
+#endif
/*
* After relocation to RAM, we can always use the "memory" functions
*/