summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2014-01-24 05:42:24 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2014-01-24 05:42:24 +0000
commit3592969d4a16b0afa18781476cc88af9eb5e2590 (patch)
treed7be96519a5a6df323babab7f4e97d785907ea81 /sys/arch/sparc64
parentc61b94147a9d00716b8857400518cb0987f98432 (diff)
Add support for BUS_INTR_ESTABLISH_MPSAFE.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/dev/vpci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/vpci.c b/sys/arch/sparc64/dev/vpci.c
index 0bb50674137..1cd356e3f00 100644
--- a/sys/arch/sparc64/dev/vpci.c
+++ b/sys/arch/sparc64/dev/vpci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vpci.c,v 1.12 2012/10/29 23:25:48 kettenis Exp $ */
+/* $OpenBSD: vpci.c,v 1.13 2014/01/24 05:42:23 kettenis Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis <kettenis@openbsd.org>
*
@@ -510,6 +510,9 @@ vpci_intr_establish(bus_space_tag_t t, bus_space_tag_t t0, int ihandle,
if (ih == NULL)
return (NULL);
+ if (flags & BUS_INTR_ESTABLISH_MPSAFE)
+ ih->ih_mpsafe = 1;
+
if (ihandle & PCI_INTR_MSI) {
pci_chipset_tag_t pc = pbm->vp_pc;
pcitag_t tag = ihandle & ~PCI_INTR_MSI;