blob: 41bc1740d5e1a442fcaeb3bf7b3e716bb8e8cb24 [file] [log] [blame]
Soren Brinkmann76fcae32016-03-06 20:16:27 -08001/*
2 * Copyright (c) 2014-2016, ARM Limited and Contributors. All rights reserved.
3 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Soren Brinkmann76fcae32016-03-06 20:16:27 -08005 */
6#ifndef __PLAT_MACROS_S__
7#define __PLAT_MACROS_S__
8
9#include <arm_macros.S>
10#include <cci_macros.S>
11#include "../zynqmp_def.h"
12
13 /* ---------------------------------------------
14 * The below required platform porting macro
Gerald Lejeune2c7ed5b2015-11-26 15:47:53 +010015 * prints out relevant GIC and CCI registers
16 * whenever an unhandled exception is taken in
17 * BL31.
18 * Clobbers: x0 - x10, x16, x17, sp
Soren Brinkmann76fcae32016-03-06 20:16:27 -080019 * ---------------------------------------------
20 */
Gerald Lejeune2c7ed5b2015-11-26 15:47:53 +010021 .macro plat_crash_print_regs
Soren Brinkmann76fcae32016-03-06 20:16:27 -080022 mov_imm x17, BASE_GICC_BASE
23 mov_imm x16, BASE_GICD_BASE
24 arm_print_gic_regs
Gerald Lejeune2c7ed5b2015-11-26 15:47:53 +010025 print_cci_regs
Soren Brinkmann76fcae32016-03-06 20:16:27 -080026 .endm
27
28#endif /* __PLAT_MACROS_S__ */