forked from Bananymous/banan-os
d90aba096389abab68d1226771e194e9a44705f4
This disables interrupts for the current scope and restores them after the scope. This is used in kmalloc, since scheduler might call into kmalloc/kfree, but deadlock if some thread is currently trying to allocate. This allows us to use kmalloc in Scheduler.
Description
No description provided
Languages
C++
77.3%
C
13.9%
Assembly
5.6%
CMake
1.8%
Shell
1.4%