summaryrefslogtreecommitdiff
path: root/common/env_common.c
diff options
context:
space:
mode:
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 eb33422af4..6e193cf051 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
*/