blob: bf1ff82b37e45b414536ed52c9abcc3657b53efd [file] [log] [blame]
Soren Brinkmann76fcae32016-03-06 20:16:27 -08001/*
Jolly Shah16fe5ab2019-01-08 11:16:16 -08002 * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved.
Soren Brinkmann76fcae32016-03-06 20:16:27 -08003 *
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>
Jolly Shah16fe5ab2019-01-08 11:16:16 -080011#include "zynqmp_def.h"
Soren Brinkmann76fcae32016-03-06 20:16:27 -080012
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 */