X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=env%2Fremote.c;h=166bebf52b5b577c7b8f2310b610e886199b4557;hb=7cfbba36e9f84312afe8cd6d12db4e9e9c1e04b5;hp=55faa1e5d0e8d2f9a0ed1563e1e826f094a5d3b8;hpb=c59afcff8a4ef087136e8a0ad7e2c587c32baf51;p=platform%2Fkernel%2Fu-boot.git diff --git a/env/remote.c b/env/remote.c index 55faa1e..166bebf 100644 --- a/env/remote.c +++ b/env/remote.c @@ -8,12 +8,14 @@ #include #include #include +#include #include +#include #ifdef ENV_IS_EMBEDDED -env_t *env_ptr = &environment; +static env_t *env_ptr = &environment; #else /* ! ENV_IS_EMBEDDED */ -env_t *env_ptr = (env_t *)CONFIG_ENV_ADDR; +static env_t *env_ptr = (env_t *)CONFIG_ENV_ADDR; #endif /* ENV_IS_EMBEDDED */ DECLARE_GLOBAL_DATA_PTR; @@ -44,7 +46,7 @@ static int env_remote_save(void) static int env_remote_load(void) { #ifndef ENV_IS_EMBEDDED - return env_import((char *)env_ptr, 1); + return env_import((char *)env_ptr, 1, H_EXTERNAL); #endif return 0;