mirror of
https://github.com/rdmsr/zag.git
synced 2026-11-01 07:48:20 +00:00
fix(ke): fix stupid spinlock bug
This commit is contained in:
@@ -26,8 +26,8 @@ pub const SpinLock = struct {
|
|||||||
|
|
||||||
/// Release the lock at IPL `ipl`.
|
/// Release the lock at IPL `ipl`.
|
||||||
pub fn release(self: *SpinLock, ipl: ke.Ipl) void {
|
pub fn release(self: *SpinLock, ipl: ke.Ipl) void {
|
||||||
ke.ipl.lower(ipl);
|
|
||||||
self.release_no_ipl();
|
self.release_no_ipl();
|
||||||
|
ke.ipl.lower(ipl);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Acquire the lock without changing the IPL.
|
/// Acquire the lock without changing the IPL.
|
||||||
|
|||||||
Reference in New Issue
Block a user