global_data.h 639 B

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