nuttx/arch/sim/src
ligd e2df52390a SMP: fix crash when switch to new task which is still running
Situation:

Assume we have 2 cpus, and busy run task0.

CPU0                                CPU1
task0 -> task1                      task2 -> task0
1. remove task0 form runninglist
2. take task1 as new tcb
3. add task0 to blocklist
4. clear spinlock
                                    4.1 remove task2 form runninglist
                                    4.2 take task0 as new tcb
                                    4.3 add task2 to blocklist
                                    4.4 use svc ISR swith to task0
                                    4.5 crash
5. use svc ISR swith to task1

Fix:
Move clear spinlock to the end of svc ISR

Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-09-17 17:37:47 +09:00
..
sim SMP: fix crash when switch to new task which is still running 2022-09-17 17:37:47 +09:00
.gitignore arch/sim: Copy include/nuttx/config.h to the local folder 2021-07-27 07:44:33 +09:00
Makefile arch/sim: add windows host simulate support 2022-08-23 22:04:42 +08:00
nuttx-names.in arch/sim/src/nuttx-names.in: Add mprotect and sysconf 2022-01-20 15:09:17 +08:00