bugfix: 修复多核启动时,自旋锁持有计数错误的问题

This commit is contained in:
fslongjin
2022-06-09 16:27:55 +08:00
parent 8f180254bc
commit 9322d8ab20
3 changed files with 10 additions and 8 deletions

View File

@ -9,7 +9,7 @@
#define preempt_disable() \
do \
{ \
--(current_pcb->preempt_count);\
++(current_pcb->preempt_count);\
} while (0)
/**
@ -19,5 +19,5 @@ do \
#define preempt_enable() \
do \
{ \
++(current_pcb->preempt_count);\
--(current_pcb->preempt_count);\
}while(0)