plat_macros.S 646 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2016, 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 <platform_def.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, GICC_BASE
  20. mov_imm x16, GICD_BASE
  21. arm_print_gic_regs
  22. .endm
  23. #endif /* PLAT_MACROS_S */