summaryrefslogtreecommitdiff
path: root/env/nowhere.c
diff options
context:
space:
mode:
Diffstat (limited to 'env/nowhere.c')
-rw-r--r--env/nowhere.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/env/nowhere.c b/env/nowhere.c
index d60de49..f654883 100644
--- a/env/nowhere.c
+++ b/env/nowhere.c
@@ -15,7 +15,20 @@
DECLARE_GLOBAL_DATA_PTR;
+/*
+ * Because we only ever have the default environment available we must mark
+ * it as invalid.
+ */
+static int env_nowhere_init(void)
+{
+ gd->env_addr = (ulong)&default_environment[0];
+ gd->env_valid = ENV_INVALID;
+
+ return 0;
+}
+
U_BOOT_ENV_LOCATION(nowhere) = {
.location = ENVL_NOWHERE,
+ .init = env_nowhere_init,
ENV_NAME("nowhere")
};