blob: 77f183dd292a4027fc9e84285175cd29638324a5 [file] [log] [blame]
Samuel Hollandb8566642017-08-12 04:07:39 -05001/*
2 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef PLAT_MACROS_S
8#define PLAT_MACROS_S
Samuel Hollandb8566642017-08-12 04:07:39 -05009
10#include <arm_macros.S>
11#include <sunxi_mmap.h>
12
13 /* ---------------------------------------------
14 * The below required platform porting macro
15 * prints out relevant GIC and CCI registers
16 * whenever an unhandled exception is taken in
17 * BL31.
18 * Clobbers: x0 - x10, x16, x17, sp
19 * ---------------------------------------------
20 */
21 .macro plat_crash_print_regs
22 mov_imm x17, SUNXI_GICC_BASE
23 mov_imm x16, SUNXI_GICD_BASE
24 arm_print_gic_regs
25 .endm
26
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000027#endif /* PLAT_MACROS_S */