From bad5a12f8753ac9072bf422c9dd7ecb3f7a14f95 Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 30 Aug 2016 12:15:28 +0000 Subject: [PATCH] Mask sb pci irq bits for a,b,c,d instead of a,b,b,d. Couldn't find someone with a loongson 2e to test this on hardware. "looks ok" visa@ --- sys/arch/loongson/loongson/generic2e_machdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/loongson/loongson/generic2e_machdep.c b/sys/arch/loongson/loongson/generic2e_machdep.c index f7a9a2e8ca9..38df7a262b1 100644 --- a/sys/arch/loongson/loongson/generic2e_machdep.c +++ b/sys/arch/loongson/loongson/generic2e_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: generic2e_machdep.c,v 1.7 2016/03/06 19:42:27 mpi Exp $ */ +/* $OpenBSD: generic2e_machdep.c,v 1.8 2016/08/30 12:15:28 jsg Exp $ */ /* * Copyright (c) 2010 Miodrag Vallat. @@ -518,7 +518,7 @@ via686sb_setup(pci_chipset_tag_t pc, int dev) reg = pci_conf_read(pc, tag, VIA686_PCI_LEVEL_PNP_IRQ2); reg &= ~(VIA686_PCI_IRQA_EDGE | VIA686_PCI_IRQB_EDGE | - VIA686_PCI_IRQB_EDGE | VIA686_PCI_IRQD_EDGE); + VIA686_PCI_IRQC_EDGE | VIA686_PCI_IRQD_EDGE); reg &= ~(VIA686_IRQ_PCIA_MASK | VIA686_IRQ_PCIB_MASK | VIA686_IRQ_PCIC_MASK | VIA686_IRQ_PCID_MASK); reg |= (VIA686_IRQ_PCIA << VIA686_IRQ_PCIA_SHIFT) | -- 2.20.1