aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorTor Egge <tegge@FreeBSD.org>1998-09-06 22:41:42 +0000
committerTor Egge <tegge@FreeBSD.org>1998-09-06 22:41:42 +0000
commit572d053e1742f6434187ae06fa4b4336fe4439c6 (patch)
tree4ee0e97285059739b3d564a6ba4e477013ca7093 /sys/dev/pci
parent6f47734fd7377b0497059287e4d55863f0858baf (diff)
downloadsrc-572d053e1742f6434187ae06fa4b4336fe4439c6.tar.gz
src-572d053e1742f6434187ae06fa4b4336fe4439c6.zip
Maintain a mapping from irq number to (ioapic number, int pin) tuple,
and use this when masking/unmasking interrupts. Maintain a mapping from (iopaic number, int pin) tuple to irq number, and use this when configuring devices and programming the ioapics. Previous code assumed that irq number was equal to int pin number, and that the ioapic number was 0. Don't let an AP enter _cpu_switch before all local apics are initialized.
Notes
Notes: svn path=/head/; revision=38888
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 2dac6de36177..fceb2205e5d1 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pci.c,v 1.84 1998/07/22 08:40:46 dfr Exp $
+ * $Id: pci.c,v 1.85 1998/08/13 19:12:20 gibbs Exp $
*
*/
@@ -343,7 +343,7 @@ pci_readcfg(pcicfgregs *probe)
if (cfg->intpin != 0) {
int airq;
- airq = pci_apic_pin(cfg->bus, cfg->slot, cfg->intpin);
+ airq = pci_apic_irq(cfg->bus, cfg->slot, cfg->intpin);
if (airq >= 0) {
/* PCI specific entry found in MP table */
if (airq != cfg->intline) {
@@ -357,7 +357,7 @@ pci_readcfg(pcicfgregs *probe)
* same methods as used by the ISA devices
* devices to find the proper IOAPIC int pin.
*/
- airq = isa_apic_pin(cfg->intline);
+ airq = isa_apic_irq(cfg->intline);
if ((airq >= 0) && (airq != cfg->intline)) {
/* XXX: undirect_pci_irq() ? */
undirect_isa_irq(cfg->intline);