X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=common%2Fenv_nowhere.c;h=18fcf2ca41da7e70d9d899b10402296675119e78;hb=c479c1361ade3cf2346f41a922b85373ddff8a26;hp=17ecc775ff9bf0686a74b9926ee6c6438956dda8;hpb=197b049b8b8a488384f351b988dd15f78830ba4e;p=karo-tx-uboot.git diff --git a/common/env_nowhere.c b/common/env_nowhere.c index 17ecc775ff..18fcf2ca41 100644 --- a/common/env_nowhere.c +++ b/common/env_nowhere.c @@ -1,5 +1,5 @@ /* - * (C) Copyright 2000-2002 + * (C) Copyright 2000-2010 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH @@ -25,41 +25,27 @@ */ #include - -#if defined(CFG_ENV_IS_NOWHERE) /* Environment is nowhere */ - #include #include #include DECLARE_GLOBAL_DATA_PTR; -env_t *env_ptr = NULL; - -extern uchar default_environment[]; -extern int default_environment_size; +env_t *env_ptr; - -void env_relocate_spec (void) +void env_relocate_spec(void) { } -uchar env_get_char_spec (int index) -{ - return ( *((uchar *)(gd->env_addr + index)) ); -} - -/************************************************************************ +/* * Initialize Environment use * * We are still running from ROM, so data use is limited */ -int env_init(void) +int env_init(void) { - gd->env_addr = (ulong)&default_environment[0]; - gd->env_valid = 0; + gd->env_addr = (ulong)&default_environment[0]; + gd->env_valid = 0; - return (0); + return 0; } - -#endif /* CFG_ENV_IS_NOWHERE) */