mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Allow level-triggered interrupt sources. While this isn't
precisely emulated, it is good enough for the single consumer i.e. irq4, the serial port on Linux.
This commit is contained in:
parent
1338ab601f
commit
841caa4090
1 changed files with 2 additions and 2 deletions
|
|
@ -101,13 +101,13 @@ ioapic_set_pinstate(struct vmctx *ctx, int pin, bool newstate)
|
|||
* XXX
|
||||
* We only deal with:
|
||||
* - edge triggered interrupts
|
||||
* - physical destination mode
|
||||
* - fixed delivery mode
|
||||
* Level-triggered sources will work so long as their is
|
||||
* no sharing.
|
||||
*/
|
||||
low = ioapic->redtbl[pin];
|
||||
high = ioapic->redtbl[pin] >> 32;
|
||||
if ((low & IOART_INTMASK) == IOART_INTMCLR &&
|
||||
(low & IOART_TRGRMOD) == IOART_TRGREDG &&
|
||||
(low & IOART_DESTMOD) == IOART_DESTPHY &&
|
||||
(low & IOART_DELMOD) == IOART_DELFIXED) {
|
||||
vector = low & IOART_INTVEC;
|
||||
|
|
|
|||
Loading…
Reference in a new issue