thermosphere: fix multiple bugs

This commit is contained in:
TuxSH
2019-12-23 20:12:02 +00:00
parent c17b81aaf6
commit e3b6d64f1b
7 changed files with 27 additions and 9 deletions

View File

@@ -70,7 +70,7 @@ static inline void recursiveSpinlockLock(RecursiveSpinlock *lock)
if (lock->tag != currentCoreCtx->coreId + 1) {
spinlockLock(&lock->lock);
lock->tag = currentCoreCtx->coreId + 1;
lock->count = 0;
lock->count = 1;
} else {
++lock->count;
}