forked from sauce-archives/mac-osx-on-kvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathioapic-polarity-revert.patch
33 lines (29 loc) · 1.25 KB
/
ioapic-polarity-revert.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: target/coreos/package/.../ioapic-polarity-revert.patch
# Copyright (C) 2012 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- T2-COPYRIGHT-NOTE-END ---
1f6f408c8c38b83b9e3e4577b680dfd686ffe37a ioapic: Implement polarity
diff --git a/hw/ioapic.c b/hw/ioapic.c
index 61991d7..5916387 100644
--- a/hw/ioapic.c
+++ b/hw/ioapic.c
@@ -148,9 +148,6 @@ static void ioapic_set_irq(void *opaque, int vector, int level)
uint32_t mask = 1 << vector;
uint64_t entry = s->ioredtbl[vector];
- if (entry & (1 << IOAPIC_LVT_POLARITY_SHIFT)) {
- level = !level;
- }
if (((entry >> IOAPIC_LVT_TRIGGER_MODE_SHIFT) & 1) ==
IOAPIC_TRIGGER_LEVEL) {
/* level triggered */