Skip to content

Commit

Permalink
core: riscv: Add support fault mitigations in non-threaded code
Browse files Browse the repository at this point in the history
The previous commit
ce56605 ("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 <alvinga@andestech.com>
  • Loading branch information
gagachang committed Oct 14, 2023
1 parent 3afba46 commit a5fc1e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/arch/riscv/include/kernel/thread_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a5fc1e4

Please sign in to comment.