1/*
2 * Copyright (c) 2017-2021, 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 <arm_macros.S>
11
12#include <msm8916_mmap.h>
13
14	/* ---------------------------------------------
15	 * The below required platform porting macro
16	 * prints out relevant GIC registers whenever
17	 * an unhandled exception is taken in BL31.
18	 * Clobbers: x0 - x10, x16, x17, sp
19	 * ---------------------------------------------
20	 */
21	.macro plat_crash_print_regs
22	mov_imm	x16, APCS_QGIC2_GICD
23	mov_imm	x17, APCS_QGIC2_GICC
24	arm_print_gic_regs
25	.endm
26
27#endif /* PLAT_MACROS_S */
28