plat_macros.S 662 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef PLAT_MACROS_S
  7. #define PLAT_MACROS_S
  8. #include <arm_macros.S>
  9. #include <sunxi_mmap.h>
  10. /* ---------------------------------------------
  11. * The below required platform porting macro
  12. * prints out relevant GIC and CCI registers
  13. * whenever an unhandled exception is taken in
  14. * BL31.
  15. * Clobbers: x0 - x10, x16, x17, sp
  16. * ---------------------------------------------
  17. */
  18. .macro plat_crash_print_regs
  19. mov_imm x17, SUNXI_GICC_BASE
  20. mov_imm x16, SUNXI_GICD_BASE
  21. arm_print_gic_regs
  22. .endm
  23. #endif /* PLAT_MACROS_S */