Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2014-2016, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 5 | */ |
| 6 | #ifndef __PLAT_MACROS_S__ |
| 7 | #define __PLAT_MACROS_S__ |
| 8 | |
| 9 | #include <arm_macros.S> |
| 10 | #include <cci_macros.S> |
| 11 | #include "../zynqmp_def.h" |
| 12 | |
| 13 | /* --------------------------------------------- |
| 14 | * The below required platform porting macro |
Gerald Lejeune | 2c7ed5b | 2015-11-26 15:47:53 +0100 | [diff] [blame] | 15 | * prints out relevant GIC and CCI registers |
| 16 | * whenever an unhandled exception is taken in |
| 17 | * BL31. |
| 18 | * Clobbers: x0 - x10, x16, x17, sp |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 19 | * --------------------------------------------- |
| 20 | */ |
Gerald Lejeune | 2c7ed5b | 2015-11-26 15:47:53 +0100 | [diff] [blame] | 21 | .macro plat_crash_print_regs |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 22 | mov_imm x17, BASE_GICC_BASE |
| 23 | mov_imm x16, BASE_GICD_BASE |
| 24 | arm_print_gic_regs |
Gerald Lejeune | 2c7ed5b | 2015-11-26 15:47:53 +0100 | [diff] [blame] | 25 | print_cci_regs |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 26 | .endm |
| 27 | |
| 28 | #endif /* __PLAT_MACROS_S__ */ |