mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
interrupt: reorder intstatus set on isr
This commit is contained in:
@@ -16,8 +16,9 @@ void interrupt_isr(int vec, context_t *ctx) {
|
||||
isr->func(isr, ctx);
|
||||
interrupt_set(false);
|
||||
|
||||
_cpu()->intstatus = oldint;
|
||||
interrupt_setipl(oldipl);
|
||||
// restore status on cpu_t struct directly
|
||||
_cpu()->intstatus = oldint;
|
||||
} else {
|
||||
isr->pending = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user