aboutsummaryrefslogtreecommitdiff
path: root/common/env_common.c
diff options
context:
space:
mode:
authorHeiko Schocher2010-10-05 14:17:00 +0200
committerWolfgang Denk2010-10-06 22:34:30 +0200
commit60f7da1f421cbbf6f54f3e9cde4e25b0a23a928a (patch)
tree86e725eca65b6c4fc64a2b6ecf4a041d579523d3 /common/env_common.c
parenta7d54346e025d91bb4413c61b5f5ec13ae2a6bfc (diff)
env: fix cmd_env_sub fct pointers if CONFIG_RELOC_FIXUP_WORKS is not defined
commit ea882baf9c17cd142c99e3ff640d3ab01daa5cec introduces a command_sub_table for the "env" command. On arm, avr32, m68k, mips and sparc architectures, relocation needs manual fixups, so add these fixups for this sub command table too. Tested on arm/qong board. mips board (Ben NanoNote) from Xiangfu Liu arm/AT91 board from Reinhard Meyer Signed-off-by: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp> cc: Xiangfu Liu <xiangfu@openmobilefree.net> cc: Reinhard Meyer <u-boot@emk-elektronik.de> cc: sshtylyov@mvista.com
Diffstat (limited to 'common/env_common.c')
-rw-r--r--common/env_common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/env_common.c b/common/env_common.c
index a415ef8efe5..88f068cc38b 100644
--- a/common/env_common.c
+++ b/common/env_common.c
@@ -227,6 +227,11 @@ int env_import(const char *buf, int check)
void env_relocate (void)
{
+#if !defined(CONFIG_RELOC_FIXUP_WORKS)
+ extern void env_reloc(void);
+
+ env_reloc();
+#endif
if (gd->env_valid == 0) {
#if defined(CONFIG_ENV_IS_NOWHERE) /* Environment not changable */
set_default_env(NULL);