blob: f689b4f397be1cc2943b2d8572a571e31ddb4302 [file] [log] [blame]
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +03001/*
2 * Copyright (C) 2018 Marvell International Ltd.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 * https://spdx.org/licenses
6 */
7
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00008#ifndef PLAT_MACROS_S
9#define PLAT_MACROS_S
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +030010
11#include <marvell_macros.S>
12
13/* ---------------------------------------------
14 * The below macro prints out relevant GIC and
15 * CCI registers registers whenever an unhandled
16 * exception is taken in BL31.
17 * ---------------------------------------------
18 */
19.macro plat_crash_print_regs
20 mov_imm x17, MVEBU_GICC_BASE
21 mov_imm x16, MVEBU_GICD_BASE
22 marvell_print_gic_regs
23 print_cci_regs
24.endm
25
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000026#endif /* PLAT_MACROS_S */