2015-03-19 18:58:55 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
|
|
|
|
*
|
2017-05-03 09:38:09 +01:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2015-03-19 18:58:55 +00:00
|
|
|
*/
|
2018-11-08 10:20:19 +00:00
|
|
|
#ifndef CSS_MACROS_S
|
|
|
|
#define CSS_MACROS_S
|
2015-03-19 18:58:55 +00:00
|
|
|
|
|
|
|
#include <arm_macros.S>
|
|
|
|
#include <platform_def.h>
|
|
|
|
|
|
|
|
/* ---------------------------------------------
|
|
|
|
* The below required platform porting macro
|
|
|
|
* prints out relevant GIC registers whenever an
|
2015-12-14 09:35:25 +00:00
|
|
|
* unhandled exception is taken in BL31.
|
2015-03-19 18:58:55 +00:00
|
|
|
* Clobbers: x0 - x10, x16, x17, sp
|
|
|
|
* ---------------------------------------------
|
|
|
|
*/
|
2015-11-26 14:47:53 +00:00
|
|
|
.macro css_print_gic_regs
|
2015-11-03 14:18:34 +00:00
|
|
|
mov_imm x16, PLAT_ARM_GICD_BASE
|
|
|
|
mov_imm x17, PLAT_ARM_GICC_BASE
|
2015-03-19 18:58:55 +00:00
|
|
|
arm_print_gic_regs
|
|
|
|
.endm
|
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
#endif /* CSS_MACROS_S */
|