| 1 |
/* |
| 2 |
* Copyright (c) 2015-2020, Broadcom |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: BSD-3-Clause |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef PLAT_MACROS_S |
| 8 |
#define PLAT_MACROS_S |
| 9 |
|
| 10 |
.section .rodata.gic_reg_name, "aS" |
| 11 |
gicc_regs: |
| 12 |
.asciz "gicc_hppir", "gicc_ahppir", "gicc_ctlr", "" |
| 13 |
gicd_pend_reg: |
| 14 |
.asciz "gicd_ispendr regs (Offsets 0x200 - 0x278)\n Offset:\t\t\tvalue\n" |
| 15 |
newline: |
| 16 |
.asciz "\n" |
| 17 |
spacer: |
| 18 |
.asciz ":\t\t0x" |
| 19 |
|
| 20 |
/* --------------------------------------------- |
| 21 |
* The below required platform porting macro |
| 22 |
* prints out relevant registers whenever an |
| 23 |
* unhandled exception is taken in BL31. |
| 24 |
* --------------------------------------------- |
| 25 |
*/ |
| 26 |
.macro plat_crash_print_regs |
| 27 |
nop |
| 28 |
.endm |
| 29 |
|
| 30 |
/* --------------------------------------------- |
| 31 |
* The below macro prints out relevant GIC |
| 32 |
* registers whenever an unhandled exception is |
| 33 |
* taken in BL31. |
| 34 |
* --------------------------------------------- |
| 35 |
*/ |
| 36 |
.macro plat_print_gic_regs |
| 37 |
nop |
| 38 |
/*TBD-STINGRAY*/ |
| 39 |
.endm |
| 40 |
|
| 41 |
/* ------------------------------------------------ |
| 42 |
* The below required platform porting macro prints |
| 43 |
* out relevant interconnect registers whenever an |
| 44 |
* unhandled exception is taken in BL3-1. |
| 45 |
* ------------------------------------------------ |
| 46 |
*/ |
| 47 |
.macro plat_print_interconnect_regs |
| 48 |
nop |
| 49 |
/*TBD-STINGRAY*/ |
| 50 |
.endm |
| 51 |
|
| 52 |
#endif /* PLAT_MACROS_S */ |