blob: e54cfc49866651ec3ab7e0238ea5adecdceabeb8 [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 */
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00006#ifndef PLAT_MACROS_S
7#define PLAT_MACROS_S
Soren Brinkmann76fcae32016-03-06 20:16:27 -08008
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
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000028#endif /* PLAT_MACROS_S */