1/* 2 * Copyright (c) 2015-2025, Renesas Electronics Corporation. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7#include <drivers/arm/cci.h> 8#include <drivers/arm/gic_common.h> 9 10#include "rcar_def.h" 11 12.section .rodata.cci_reg_name, "aS" 13cci_iface_regs: 14 .asciz "cci_snoop_ctrl_cluster0", "cci_snoop_ctrl_cluster1" , "" 15 16 /* ------------------------------------------------ 17 * The below macro prints out relevant interconnect 18 * registers whenever an unhandled exception is 19 * taken in BL3-1. 20 * Clobbers: x0 - x9, sp 21 * ------------------------------------------------ 22 */ 23 .macro plat_print_interconnect_regs 24 adr x6, cci_iface_regs 25 /* Store in x7 the base address of the first interface */ 26 mov_imm x7, (CCI500_BASE + SLAVE_IFACE3_OFFSET) 27 ldr w8, [x7, #SNOOP_CTRL_REG] 28 /* Store in x7 the base address of the second interface */ 29 mov_imm x7, (CCI500_BASE + SLAVE_IFACE4_OFFSET) 30 ldr w9, [x7, #SNOOP_CTRL_REG] 31 /* Store to the crash buf and print to console */ 32 bl str_in_crash_buf_print 33 .endm 34 35 .macro plat_crash_print_regs 36 plat_print_interconnect_regs 37 .endm 38