global_data.h 534 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
  4. */
  5. #ifndef __ASM_ARC_GLOBAL_DATA_H
  6. #define __ASM_ARC_GLOBAL_DATA_H
  7. #include <config.h>
  8. #ifndef __ASSEMBLY__
  9. /* Architecture-specific global data */
  10. struct arch_global_data {
  11. int l1_line_sz;
  12. #if defined(CONFIG_ISA_ARCV2)
  13. int slc_line_sz;
  14. #endif
  15. };
  16. #endif /* __ASSEMBLY__ */
  17. #include <asm-generic/global_data.h>
  18. #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r25")
  19. #endif /* __ASM_ARC_GLOBAL_DATA_H */