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
..
2024-07-27 22:59:23 +08:00
2024-02-18 09:17:56 -08:00
2023-02-09 14:17:49 +08:00
2023-02-15 00:21:03 +08:00
2024-04-11 22:20:39 +08:00
2024-03-25 20:39:24 +08:00
2024-07-31 12:43:04 -03:00
2024-07-31 12:43:04 -03:00
2024-08-14 22:36:57 +08:00