mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +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);
|
isr->func(isr, ctx);
|
||||||
interrupt_set(false);
|
interrupt_set(false);
|
||||||
|
|
||||||
_cpu()->intstatus = oldint;
|
|
||||||
interrupt_setipl(oldipl);
|
interrupt_setipl(oldipl);
|
||||||
|
// restore status on cpu_t struct directly
|
||||||
|
_cpu()->intstatus = oldint;
|
||||||
} else {
|
} else {
|
||||||
isr->pending = true;
|
isr->pending = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user