kernel/x86: Use volatile in restore_interrupts.

We already use it in enable_interrupts, so we might as well
use it here too.
This commit is contained in:
Augustin Cavalier 2019-01-07 22:12:36 -05:00
parent a84bb93b44
commit 1c1efa6f2f

View File

@ -41,7 +41,7 @@ static inline void
arch_int_restore_interrupts_inline(int oldState)
{
if (oldState)
asm("sti");
asm volatile("sti");
}