mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-09 00:22:43 +02:00
The naive spinlock was not nearly enough to protect kmalloc from reentrancy problems. I don't want to deal with coming up with a fancy lock for kmalloc right now, so I made an InterruptDisabler thingy instead. It does CLI and then STI iff interrupts were previously enabled.
1.2 KiB
1.2 KiB