blob: 6ee4597f2fa06f62a47daff2b655f5fc679093d1 [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
7#ifndef __PLAT_MACROS_S__
8#define __PLAT_MACROS_S__
9
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
27#endif /* __PLAT_MACROS_S__ */