plat_macros.S 653 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2017-2021, 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 <msm8916_mmap.h>
  10. /* ---------------------------------------------
  11. * The below required platform porting macro
  12. * prints out relevant GIC registers whenever
  13. * an unhandled exception is taken in BL31.
  14. * Clobbers: x0 - x10, x16, x17, sp
  15. * ---------------------------------------------
  16. */
  17. .macro plat_crash_print_regs
  18. mov_imm x16, APCS_QGIC2_GICD
  19. mov_imm x17, APCS_QGIC2_GICC
  20. arm_print_gic_regs
  21. .endm
  22. #endif /* PLAT_MACROS_S */