env_nowhere.c 611 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * (C) Copyright 2000-2010
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  6. * Andreas Heppel <aheppel@sysgo.de>
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. #include <common.h>
  10. #include <command.h>
  11. #include <environment.h>
  12. #include <linux/stddef.h>
  13. DECLARE_GLOBAL_DATA_PTR;
  14. env_t *env_ptr;
  15. void env_relocate_spec(void)
  16. {
  17. }
  18. /*
  19. * Initialize Environment use
  20. *
  21. * We are still running from ROM, so data use is limited
  22. */
  23. int env_init(void)
  24. {
  25. gd->env_addr = (ulong)&default_environment[0];
  26. gd->env_valid = 0;
  27. return 0;
  28. }