From fb0dd43a5ef7db364d6b5dc156a4068cdfd4945f Mon Sep 17 00:00:00 2001 From: Alvin Chang Date: Mon, 9 Oct 2023 23:19:29 +0800 Subject: [PATCH] core: riscv: Support fault mitigations in non-threaded code The previous commit ce56605a0ede ("core: support fault mitigations in non-threaded code") supports fault mitigations in non-threaded code for ARM architecture. This commit adds the related modification for RISC-V architecture to support it too. Signed-off-by: Alvin Chang --- core/arch/riscv/include/kernel/thread_arch.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/arch/riscv/include/kernel/thread_arch.h b/core/arch/riscv/include/kernel/thread_arch.h index e150fa10e86..1e2da17b726 100644 --- a/core/arch/riscv/include/kernel/thread_arch.h +++ b/core/arch/riscv/include/kernel/thread_arch.h @@ -32,6 +32,9 @@ struct thread_core_local { #ifdef CFG_CORE_DEBUG_CHECK_STACKS bool stackcheck_recursion; #endif +#ifdef CFG_FAULT_MITIGATION + struct ftmn_func_arg *ftmn_arg; +#endif } THREAD_CORE_LOCAL_ALIGNED; struct thread_user_vfp_state {