mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
Kernel: Use InterruptsState in Spinlock code
This commit updates the lock function from Spinlock and RecursiveSpinlock to return the InterruptsState of the processor, instead of the processor flags. The unlock functions would only look at the interrupt flag of the processor flags, so we now use the InterruptsState enum to clarify the intent, and such that we can use the same Spinlock code for the aarch64 build. To not break the build, all the call sites are updated aswell.
This commit is contained in:
committed by
Andreas Kling
parent
6432f3eee8
commit
e8aff0c1c8
@@ -164,7 +164,7 @@ void Thread::FutexBlocker::finish_requeue(FutexQueue& futex_queue)
|
||||
VERIFY(m_lock.is_locked_by_current_processor());
|
||||
set_blocker_set_raw_locked(&futex_queue);
|
||||
// We can now release the lock
|
||||
m_lock.unlock(m_relock_flags);
|
||||
m_lock.unlock(m_previous_interrupts_state);
|
||||
}
|
||||
|
||||
bool Thread::FutexBlocker::unblock_bitset(u32 bitset)
|
||||
|
||||
Reference in New Issue
Block a user