mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-24 07:51:16 +02:00
Add a platform specific handler for RAS interrupts and configure the platform RAS interrupts for EL3 handling. The interrupt handler passes control to StandaloneMM code executing in S-EL0, which populates the CPER buffer with relevant error information. The handler subsequently invokes the SDEI client which processes the information in the error information in the CPER buffer. The helper functions plat_sgi_get_ras_ev_map and plat_sgi_get_ras_ev_map_size would be defined for sgi platforms in the subsequent patch, which adds sgi575 specific RAS changes. Change-Id: I490f16c15d9917ac40bdc0441659b92380108d63 Signed-off-by: Sughosh Ganu <sughosh.ganu@arm.com>
23 lines
489 B
C
23 lines
489 B
C
/*
|
|
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef __SGI_RAS__
|
|
#define __SGI_RAS__
|
|
|
|
/*
|
|
* Mapping the RAS interrupt with SDEI event number and the event
|
|
* id used with Standalone MM code
|
|
*/
|
|
struct sgi_ras_ev_map {
|
|
int ras_ev_num; /* RAS Event number */
|
|
int sdei_ev_num; /* SDEI Event number */
|
|
int intr; /* Physical intr number */
|
|
};
|
|
|
|
int sgi_ras_intr_handler_setup(void);
|
|
|
|
#endif /* __SGI_RAS__ */
|