* atf-20240117-bacca82a8: import new atf Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> * atf-20240117-bacca82a8: remove Werror * atf-20240117-bacca82a8: call bromimage-x86_64 for aarch64 host * atf-20240117-bacca82a8: export ram boot uart option Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> * atf-20240117-bacca82a8: apply openwrt patches Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> * atf-20240117-bacca82a8: port board configs Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> * build.sh: switch to use atf-20240117-bacca82a8 Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> * build.sh: support new menuconfig Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> * build.sh: pass u-boot path by variable Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> * atf-20231013-0ea67d76a: drop Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> --------- Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> Co-authored-by: hanwckf <hanwckf@vip.qq.com>
31 lines
764 B
C
31 lines
764 B
C
/*
|
|
* Copyright (c) 2022, ARM Limited. All rights reserved.
|
|
* Copyright (c) 2023, NVIDIA Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
* Dispatch synchronous system register traps from lower ELs.
|
|
*/
|
|
|
|
#include <bl31/sync_handle.h>
|
|
#include <context.h>
|
|
|
|
int handle_sysreg_trap(uint64_t esr_el3, cpu_context_t *ctx)
|
|
{
|
|
uint64_t __unused opcode = esr_el3 & ISS_SYSREG_OPCODE_MASK;
|
|
|
|
#if ENABLE_FEAT_RNG_TRAP
|
|
if ((opcode == ISS_SYSREG_OPCODE_RNDR) || (opcode == ISS_SYSREG_OPCODE_RNDRRS)) {
|
|
return plat_handle_rng_trap(esr_el3, ctx);
|
|
}
|
|
#endif
|
|
|
|
#if IMPDEF_SYSREG_TRAP
|
|
if ((opcode & ISS_SYSREG_OPCODE_IMPDEF) == ISS_SYSREG_OPCODE_IMPDEF) {
|
|
return plat_handle_impdef_trap(esr_el3, ctx);
|
|
}
|
|
#endif
|
|
|
|
return TRAP_RET_UNHANDLED;
|
|
}
|