X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=inline;f=common%2Fenv_nowhere.c;h=18fcf2ca41da7e70d9d899b10402296675119e78;hb=a52852c5a65fe6636c7408829eced892deefc1de;hp=ccc068b8e8427c4fd8b4fbdd995d6a75b7ed3e4d;hpb=9e4623a0addf58fe4fd389fbdd559c179146f4a0;p=oweals%2Fu-boot.git diff --git a/common/env_nowhere.c b/common/env_nowhere.c index ccc068b8e8..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 @@ -31,29 +31,21 @@ DECLARE_GLOBAL_DATA_PTR; -env_t *env_ptr = NULL; +env_t *env_ptr; -extern uchar default_environment[]; - - -void env_relocate_spec (void) -{ -} - -uchar env_get_char_spec (int index) +void env_relocate_spec(void) { - 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; }