mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-20 10:06:31 +00:00
bugfix: 修复多核启动时,自旋锁持有计数错误的问题
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user