Samuel Holland | b856664 | 2017-08-12 04:07:39 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame^] | 7 | #ifndef PLAT_MACROS_S |
| 8 | #define PLAT_MACROS_S |
Samuel Holland | b856664 | 2017-08-12 04:07:39 -0500 | [diff] [blame] | 9 | |
| 10 | #include <arm_macros.S> |
| 11 | #include <sunxi_mmap.h> |
| 12 | |
| 13 | /* --------------------------------------------- |
| 14 | * The below required platform porting macro |
| 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 |
| 19 | * --------------------------------------------- |
| 20 | */ |
| 21 | .macro plat_crash_print_regs |
| 22 | mov_imm x17, SUNXI_GICC_BASE |
| 23 | mov_imm x16, SUNXI_GICD_BASE |
| 24 | arm_print_gic_regs |
| 25 | .endm |
| 26 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame^] | 27 | #endif /* PLAT_MACROS_S */ |