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
Languages
C++
87.1%
C
6.4%
Assembly
2.6%
Shell
2.5%
CMake
1.4%