mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
interrupt: fix ipl check
This commit is contained in:
@@ -9,7 +9,7 @@ void interrupt_isr(int vec, context_t *ctx) {
|
||||
if (isr->func == NULL)
|
||||
_panic("Unregistered interrupt", ctx);
|
||||
|
||||
if (_cpu()->ipl < isr->priority) {
|
||||
if (_cpu()->ipl > isr->priority) {
|
||||
long oldipl = interrupt_setipl(isr->priority);
|
||||
|
||||
bool oldint = interrupt_set(true);
|
||||
|
||||
Reference in New Issue
Block a user