blob: 85a7044d7b2377e7bac0c9dd94c58a42a0161afa [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 */
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00006#ifndef CSS_MACROS_S
7#define CSS_MACROS_S
Dan Handley9df48042015-03-19 18:58:55 +00008
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
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000025#endif /* CSS_MACROS_S */