plat_macros.S 596 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (C) 2018 Marvell International Ltd.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. * https://spdx.org/licenses
  6. */
  7. #ifndef PLAT_MACROS_S
  8. #define PLAT_MACROS_S
  9. #include <marvell_macros.S>
  10. /* ---------------------------------------------
  11. * The below macro prints out relevant GIC and
  12. * CCI registers registers whenever an unhandled
  13. * exception is taken in BL31.
  14. * ---------------------------------------------
  15. */
  16. .macro plat_crash_print_regs
  17. mov_imm x17, MVEBU_GICC_BASE
  18. mov_imm x16, MVEBU_GICD_BASE
  19. marvell_print_gic_regs
  20. print_cci_regs
  21. .endm
  22. #endif /* PLAT_MACROS_S */