incubator-nuttx/arch
Ville Juven 9ef76e3735 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-09-27 10:22:43 +08:00
..
arm arch: change nxsched_suspend/resume_scheduler() called position 2024-09-27 09:53:33 +08:00
arm64 arch: change nxsched_suspend/resume_scheduler() called position 2024-09-27 09:53:33 +08:00
avr compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
ceva arch: change nxsched_suspend/resume_scheduler() called position 2024-09-27 09:53:33 +08:00
dummy
hc Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
mips compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
misoc compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
or1k compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
renesas Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
risc-v riscv_fork.c: Fix race condition when handling parent integer registers 2024-09-27 10:22:43 +08:00
sim compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
sparc compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
tricore compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
x86 arch: change nxsched_suspend/resume_scheduler() called position 2024-09-27 09:53:33 +08:00
x86_64 arch: change nxsched_suspend/resume_scheduler() called position 2024-09-27 09:53:33 +08:00
xtensa arch: change nxsched_suspend/resume_scheduler() called position 2024-09-27 09:53:33 +08:00
z16 arch: use up_current_regs/up_set_current_regs replace CURRENT_REGS 2024-09-13 23:18:58 +08:00
z80 compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
CMakeLists.txt build/cmake: add initial KERNEL mode support 2024-03-15 16:21:23 +08:00
Kconfig arch/x86_64:Add FP backtrace function 2024-09-23 23:15:01 +08:00