If an interrupt source doesn't have an ithread, treat it as a stray
interrupt. This can only happen if an unregistered interrupt source triggers an interrupt.
This commit is contained in:
parent
134bbb89c8
commit
642972defa
@ -171,7 +171,10 @@ intr_execute_handlers(struct intsrc *isrc, struct intrframe *iframe)
|
||||
atomic_add_int(&cnt.v_intr, 1);
|
||||
|
||||
it = isrc->is_ithread;
|
||||
ih = TAILQ_FIRST(&it->it_handlers);
|
||||
if (it == NULL)
|
||||
ih = NULL;
|
||||
else
|
||||
ih = TAILQ_FIRST(&it->it_handlers);
|
||||
|
||||
/*
|
||||
* XXX: We assume that IRQ 0 is only used for the ISA timer
|
||||
|
@ -171,7 +171,10 @@ intr_execute_handlers(struct intsrc *isrc, struct intrframe *iframe)
|
||||
atomic_add_int(&cnt.v_intr, 1);
|
||||
|
||||
it = isrc->is_ithread;
|
||||
ih = TAILQ_FIRST(&it->it_handlers);
|
||||
if (it == NULL)
|
||||
ih = NULL;
|
||||
else
|
||||
ih = TAILQ_FIRST(&it->it_handlers);
|
||||
|
||||
/*
|
||||
* XXX: We assume that IRQ 0 is only used for the ISA timer
|
||||
|
Loading…
Reference in New Issue
Block a user