summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-06-29 21:30:58 +0000
committerkettenis <kettenis@openbsd.org>2020-06-29 21:30:58 +0000
commit06b18bea18fcf197c733777a6acacc4bb9b3257b (patch)
tree3974f6d70915466a69657c27f211b4cc534749b4 /sys
parentEnable USER_PCICONF. (diff)
downloadwireguard-openbsd-06b18bea18fcf197c733777a6acacc4bb9b3257b.tar.xz
wireguard-openbsd-06b18bea18fcf197c733777a6acacc4bb9b3257b.zip
Use the right bus space tag when enabling MSI-X interrupts. Makes them
actually work.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc64/dev/phb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc64/dev/phb.c b/sys/arch/powerpc64/dev/phb.c
index 1d664fe6d74..439608448fa 100644
--- a/sys/arch/powerpc64/dev/phb.c
+++ b/sys/arch/powerpc64/dev/phb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: phb.c,v 1.9 2020/06/26 12:34:53 jsg Exp $ */
+/* $OpenBSD: phb.c,v 1.10 2020/06/29 21:30:58 kettenis Exp $ */
/*
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
*
@@ -522,7 +522,7 @@ phb_intr_establish(void *v, pci_intr_handle_t ih, int level,
if (ih.ih_type == PCI_MSIX) {
pci_msix_enable(ih.ih_pc, ih.ih_tag,
- sc->sc_iot, ih.ih_intrpin, addr, data);
+ &sc->sc_bus_memt, ih.ih_intrpin, addr, data);
} else
pci_msi_enable(ih.ih_pc, ih.ih_tag, addr, data);
}