mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 22:18:21 +00:00
interrupt: fix interrupt_set
This commit is contained in:
@@ -179,14 +179,14 @@ long interrupt_raiseipl(long ipl) {
|
||||
}
|
||||
|
||||
bool interrupt_set(bool status) {
|
||||
bool old = _cpu()->intstatus;
|
||||
_cpu()->intstatus = status;
|
||||
|
||||
if (status)
|
||||
arch_interrupt_enable();
|
||||
else
|
||||
arch_interrupt_disable();
|
||||
|
||||
bool old = _cpu()->intstatus;
|
||||
_cpu()->intstatus = status;
|
||||
|
||||
if (status)
|
||||
DOPENDING_SAVE();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user