Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015, 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 |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 5 | */ |
| 6 | #ifndef __CSS_MACROS_S__ |
| 7 | #define __CSS_MACROS_S__ |
| 8 | |
| 9 | #include <arm_macros.S> |
| 10 | #include <platform_def.h> |
| 11 | |
| 12 | /* --------------------------------------------- |
| 13 | * The below required platform porting macro |
| 14 | * prints out relevant GIC registers whenever an |
Juan Castillo | 7d19941 | 2015-12-14 09:35:25 +0000 | [diff] [blame] | 15 | * unhandled exception is taken in BL31. |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 16 | * Clobbers: x0 - x10, x16, x17, sp |
| 17 | * --------------------------------------------- |
| 18 | */ |
Gerald Lejeune | 2c7ed5b | 2015-11-26 15:47:53 +0100 | [diff] [blame] | 19 | .macro css_print_gic_regs |
Achin Gupta | 1fa7eb6 | 2015-11-03 14:18:34 +0000 | [diff] [blame] | 20 | mov_imm x16, PLAT_ARM_GICD_BASE |
| 21 | mov_imm x17, PLAT_ARM_GICC_BASE |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 22 | arm_print_gic_regs |
| 23 | .endm |
| 24 | |
| 25 | |
| 26 | #endif /* __CSS_MACROS_S__ */ |