global_data.h 973 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2002
  4. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  5. *
  6. * Copyright (C) 2011 Andes Technology Corporation
  7. * Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com>
  8. * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
  9. */
  10. /**************************************************************
  11. * CAUTION:
  12. * - do not implement for NDS32 Arch yet.
  13. * - so far no one uses the macros defined in this head file.
  14. **************************************************************/
  15. #ifndef __ASM_GBL_DATA_H
  16. #define __ASM_GBL_DATA_H
  17. /* Architecture-specific global data */
  18. struct arch_global_data {
  19. };
  20. #include <asm-generic/global_data.h>
  21. #ifdef CONFIG_GLOBAL_DATA_NOT_REG10
  22. extern volatile gd_t g_gd;
  23. #define DECLARE_GLOBAL_DATA_PTR static volatile gd_t *gd = &g_gd
  24. #else
  25. #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("$r10")
  26. #endif
  27. #endif /* __ASM_GBL_DATA_H */