nuttx/arch/risc-v
Ville Juven 10e44f8915 riscv_fork.c: Fix race condition when handling parent integer registers
We need to record the parent's integer register context upon exception
entry to a separate non-volatile area. Why?

Because xcp.regs can move due to a context switch within the fork() system
call, be it either via interrupt or a synchronization point.

Fix this by adding a "sregs" area where the saved user context is placed.
The critical section within fork() is also unnecessary.
2024-10-03 09:07:57 +08:00
..
include riscv_fork.c: Fix race condition when handling parent integer registers 2024-10-03 09:07:57 +08:00
src riscv_fork.c: Fix race condition when handling parent integer registers 2024-10-03 09:07:57 +08:00
CMakeLists.txt
Kconfig risc-v: Add a new option to control exception reason 2024-09-17 15:26:06 -03:00