2016-03-07 04:16:27 +00:00
|
|
|
/*
|
2019-01-08 19:16:16 +00:00
|
|
|
* Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved.
|
2016-03-07 04:16:27 +00:00
|
|
|
*
|
2017-05-03 09:38:09 +01:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2016-03-07 04:16:27 +00:00
|
|
|
*/
|
2018-11-08 10:20:19 +00:00
|
|
|
#ifndef PLAT_MACROS_S
|
|
|
|
#define PLAT_MACROS_S
|
2016-03-07 04:16:27 +00:00
|
|
|
|
|
|
|
#include <arm_macros.S>
|
|
|
|
#include <cci_macros.S>
|
2019-01-08 19:16:16 +00:00
|
|
|
#include "zynqmp_def.h"
|
2016-03-07 04:16:27 +00:00
|
|
|
|
|
|
|
/* ---------------------------------------------
|
|
|
|
* The below required platform porting macro
|
2015-11-26 14:47:53 +00:00
|
|
|
* prints out relevant GIC and CCI registers
|
|
|
|
* whenever an unhandled exception is taken in
|
|
|
|
* BL31.
|
|
|
|
* Clobbers: x0 - x10, x16, x17, sp
|
2016-03-07 04:16:27 +00:00
|
|
|
* ---------------------------------------------
|
|
|
|
*/
|
2015-11-26 14:47:53 +00:00
|
|
|
.macro plat_crash_print_regs
|
2016-03-07 04:16:27 +00:00
|
|
|
mov_imm x17, BASE_GICC_BASE
|
|
|
|
mov_imm x16, BASE_GICD_BASE
|
|
|
|
arm_print_gic_regs
|
2015-11-26 14:47:53 +00:00
|
|
|
print_cci_regs
|
2016-03-07 04:16:27 +00:00
|
|
|
.endm
|
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
#endif /* PLAT_MACROS_S */
|