blob: 667f6c8ff3be2ecb3d8d528afeeb5f938e6a6cb5 [file] [log] [blame]
Loh Tien Hock59400a42019-02-04 16:17:24 +08001/*
2 * Copyright (c) 2019, Intel Corporation. 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 <platform_def.h>
11
12 /* ---------------------------------------------
13 * The below required platform porting macro
14 * prints out relevant platform registers
15 * whenever an unhandled exception is taken in
16 * BL31.
17 * ---------------------------------------------
18 */
19 .macro plat_crash_print_regs
20 mov_imm x17, PLAT_GICC_BASE
21 mov_imm x16, PLAT_GICD_BASE
22 arm_print_gic_regs
23 .endm
24
25#endif /* __PLAT_MACROS_S__ */