global_data.h 597 B

123456789101112131415161718192021222324252627
  1. /*
  2. * (C) Copyright 2004, Psyent Corporation <www.psyent.com>
  3. * Scott McNutt <smcnutt@psyent.com>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef __ASM_NIOS2_GLOBALDATA_H_
  8. #define __ASM_NIOS2_GLOBALDATA_H_
  9. /* Architecture-specific global data */
  10. struct arch_global_data {
  11. u32 dcache_line_size;
  12. u32 icache_line_size;
  13. u32 dcache_size;
  14. u32 icache_size;
  15. u32 reset_addr;
  16. u32 exception_addr;
  17. int has_initda;
  18. int has_mmu;
  19. u32 io_region_base;
  20. };
  21. #include <asm-generic/global_data.h>
  22. #define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("gp")
  23. #endif /* __ASM_NIOS2_GLOBALDATA_H_ */