diff options
Diffstat (limited to 'src/stem/core/sys.c')
-rw-r--r-- | src/stem/core/sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stem/core/sys.c b/src/stem/core/sys.c index 71d1c31..36ed6d0 100644 --- a/src/stem/core/sys.c +++ b/src/stem/core/sys.c @@ -36,6 +36,6 @@ void cli() { } void sti() { - if_locks--; + if (if_locks > 0) if_locks--; if (if_locks == 0) asm volatile("sti"); } |