mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-23 23:41:19 +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>
30 lines
627 B
C
30 lines
627 B
C
/*
|
|
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <bl_common.h>
|
|
#include <debug.h>
|
|
#include <plat_arm.h>
|
|
#include <sgi_plat_config.h>
|
|
#include <sgi_ras.h>
|
|
|
|
void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
|
|
u_register_t arg2, u_register_t arg3)
|
|
{
|
|
/* Initialize the platform configuration structure */
|
|
plat_config_init();
|
|
|
|
arm_bl31_early_platform_setup((void *)arg0, arg1, arg2, (void *)arg3);
|
|
}
|
|
|
|
void bl31_platform_setup(void)
|
|
{
|
|
arm_bl31_platform_setup();
|
|
|
|
#if RAS_EXTENSION
|
|
sgi_ras_intr_handler_setup();
|
|
#endif
|
|
}
|