mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
interrupt: default interrupts being off in isr
This commit is contained in:
@@ -11,14 +11,10 @@ void interrupt_isr(int vec, context_t *ctx) {
|
||||
|
||||
if (_cpu()->ipl > isr->priority) {
|
||||
long oldipl = interrupt_setipl(isr->priority);
|
||||
|
||||
bool oldint = interrupt_set(true);
|
||||
bool oldint = _cpu()->intstatus;
|
||||
isr->func(isr, ctx);
|
||||
interrupt_set(false);
|
||||
|
||||
interrupt_setipl(oldipl);
|
||||
// restore status on cpu_t struct directly
|
||||
_cpu()->intstatus = oldint;
|
||||
interrupt_setipl(oldipl);
|
||||
} else {
|
||||
isr->pending = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user