blob: a6e05a96158b4a16bdbe2d180e064a349a4d8426 [file] [log] [blame]
developer6d207b42022-07-07 19:30:22 +08001/*
2 * Copyright (c) 2022, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef PLAT_MACROS_S
8#define PLAT_MACROS_S
9
10#include <platform_def.h>
11
12.section .rodata.gic_reg_name, "aS"
13gicc_regs:
14 .asciz "gicc_hppir", "gicc_ahppir", "gicc_ctlr", ""
15gicd_pend_reg:
16 .asciz "gicd_ispendr regs (Offsets 0x200 - 0x278)\n" \
17 " Offset:\t\t\tvalue\n"
18newline:
19 .asciz "\n"
20spacer:
21 .asciz ":\t\t0x"
22
23.section .rodata.cci_reg_name, "aS"
24cci_iface_regs:
25 .asciz "cci_snoop_ctrl_cluster0", "cci_snoop_ctrl_cluster1" , ""
26
27 /* ---------------------------------------------
28 * The below macro prints out relevant GIC
29 * registers whenever an unhandled exception
30 * is taken in BL31.
31 * Clobbers: x0 - x10, x26, x27, sp
32 * ---------------------------------------------
33 */
34 .macro plat_crash_print_regs
35 /* TODO: leave implementation to GIC owner */
36 .endm
37
38#endif /* PLAT_MACROS_S */