blob: 08f9feb712407d42b9110294e93135e66166cc0d [file] [log] [blame]
rutigl@gmail.comdefbeed2023-03-19 09:19:05 +02001/*
2 * Copyright (c) 2015-2023, ARM Limited and Contributors. All rights reserved.
3 *
4 * Copyright (c) 2017-2023 Nuvoton Technology Corp.
5 *
6 * SPDX-License-Identifier: BSD-3-Clause
7 */
8
9#ifndef PLAT_MACROS_S
10#define PLAT_MACROS_S
11
12#include <arm_macros.S>
13#include <cci_macros.S>
14#include <platform_def.h>
15
16/*
17 * The below macro prints out relevant GIC
18 * registers whenever an unhandled exception is
19 * taken in BL3-1.
20 * Clobbers: x0 - x10, x16, x17, sp
21 */
22.macro plat_print_gic_regs
23mov_imm x17, BASE_GICC_BASE
24mov_imm x16, BASE_GICD_BASE
25arm_print_gic_regs
26.endm
27
28/*
29 * the below macros print out relevant interconnect
30 * registers whenever an unhandled exception is
31 * taken in BL3-1
32 */
33.macro plat_print_interconnect_regs
34 /* TODO */
35.endm
36
37/*
38 * The below required platform porting macro
39 * prints out relevant platform registers
40 * whenever an unhandled exception is taken in
41 * BL31.
42 */
43.macro plat_crash_print_regs
44 /* TODO */
45.endm
46
47#endif /* PLAT_MACROS_S */