Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160293938
D55889.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
984 B
Referenced Files
None
Subscribers
None
D55889.diff
View Options
diff --git a/sys/x86/include/apicvar.h b/sys/x86/include/apicvar.h
--- a/sys/x86/include/apicvar.h
+++ b/sys/x86/include/apicvar.h
@@ -84,6 +84,7 @@
* to use that ID.
*/
#define IOAPIC_MAX_ID 0xff
+#define IOAPIC_MAX_EXT_ID 0x7fff
/* I/O Interrupts are used for external devices such as ISA, PCI, etc. */
#define APIC_IO_INTS (IDT_IO_INTS + 16)
diff --git a/sys/x86/x86/io_apic.c b/sys/x86/x86/io_apic.c
--- a/sys/x86/x86/io_apic.c
+++ b/sys/x86/x86/io_apic.c
@@ -371,6 +371,13 @@
low = IOART_DESTPHY;
high = intpin->io_cpu << APIC_ID_SHIFT;
intpin->io_valid = 1;
+ } else if (intpin->io_cpu <= IOAPIC_MAX_EXT_ID &&
+ apic_ext_dest_id == 1) {
+ low = IOART_DESTPHY;
+ high = intpin->io_cpu << APIC_ID_SHIFT & APIC_ID_MASK;
+ high |= (intpin->io_cpu >> 8) << APIC_EXT_ID_SHIFT
+ & APIC_EXT_ID_MASK;
+ intpin->io_valid = 1;
} else {
printf("%s: unsupported destination APIC ID %u for pin %u\n",
__func__, intpin->io_cpu, intpin->io_intpin);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jun 24, 12:24 AM (47 m, 45 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34265144
Default Alt Text
D55889.diff (984 B)
Attached To
Mode
D55889: io_apic: Support APIC Extended Destination IDs
Attached
Detach File
Event Timeline
Log In to Comment