1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Re-route interrupts on ia64 so that we can get the I/O SAPIC interrupt

numbers (the BIOS leaves legacy PIC interrupt numbers in the intline
registers).
This commit is contained in:
Doug Rabson 2001-10-05 10:33:42 +00:00
parent 7a7029581c
commit aa55386965
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84542

View File

@ -747,9 +747,20 @@ pci_add_resources(device_t pcib, int b, int s, int f, device_t dev)
pci_add_map(pcib, b, s, f, q->arg1, rl);
}
if (cfg->intpin > 0 && cfg->intline != 255)
if (cfg->intpin > 0 && cfg->intline != 255) {
#ifdef __ia64__
/*
* Re-route interrupts on ia64 so that we can get the
* I/O SAPIC interrupt numbers (the BIOS leaves legacy
* PIC interrupt numbers in the intline registers).
*/
cfg->intline = PCIB_ROUTE_INTERRUPT(pcib,
dev,
cfg->intpin);
#endif
resource_list_add(rl, SYS_RES_IRQ, 0,
cfg->intline, cfg->intline, 1);
}
}
static void