mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
Do not set level-triggered interrupt mode if we are not going to use it.
This fixes QEMU crash due to unsupported level-triggered HPET interrupts. Reported by: kib@
This commit is contained in:
parent
7812ede3ff
commit
e723056a58
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209431
@ -526,6 +526,7 @@ hpet_attach(device_t dev)
|
||||
t->irq = -2;
|
||||
} else
|
||||
#endif
|
||||
if (sc->irq >= 0 && (t->vectors & (1 << sc->irq)))
|
||||
t->caps |= (sc->irq << 9) | HPET_TCNF_INT_TYPE;
|
||||
bus_write_4(sc->mem_res, HPET_TIMER_CAP_CNF(i), t->caps);
|
||||
/* Skip event timers without set up IRQ. */
|
||||
|
Loading…
Reference in New Issue
Block a user