blob: b669ef6b3e6a43998612012e85a4546a68c991f3 [file] [log] [blame]
Dan Handley9df48042015-03-19 18:58:55 +00001/*
2 * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
3 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Dan Handley9df48042015-03-19 18:58:55 +00005 */
6#ifndef __CSS_MACROS_S__
7#define __CSS_MACROS_S__
8
9#include <arm_macros.S>
10#include <platform_def.h>
11
12 /* ---------------------------------------------
13 * The below required platform porting macro
14 * prints out relevant GIC registers whenever an
Juan Castillo7d199412015-12-14 09:35:25 +000015 * unhandled exception is taken in BL31.
Dan Handley9df48042015-03-19 18:58:55 +000016 * Clobbers: x0 - x10, x16, x17, sp
17 * ---------------------------------------------
18 */
Gerald Lejeune2c7ed5b2015-11-26 15:47:53 +010019 .macro css_print_gic_regs
Achin Gupta1fa7eb62015-11-03 14:18:34 +000020 mov_imm x16, PLAT_ARM_GICD_BASE
21 mov_imm x17, PLAT_ARM_GICC_BASE
Dan Handley9df48042015-03-19 18:58:55 +000022 arm_print_gic_regs
23 .endm
24
25
26#endif /* __CSS_MACROS_S__ */