summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2013-07-16 19:46:57 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2013-07-16 19:46:57 +0000
commitb16bbd430148907528f336c8814576e816fc5b70 (patch)
treeda3c5312ac4d0da92a07b7ead42e3c9ec4f0882c /sys/arch/sparc64/dev
parent76e7bcab7fb02de269aba40d163175aafbb67705 (diff)
The interrupt handler for vcons(4) is defenitely safe to run without holding
the kernel lock, so use BUS_INTR_ESTABLISH_MPSAFE.
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r--sys/arch/sparc64/dev/vcons.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/dev/vcons.c b/sys/arch/sparc64/dev/vcons.c
index 4cc71a409b9..e635f090d2f 100644
--- a/sys/arch/sparc64/dev/vcons.c
+++ b/sys/arch/sparc64/dev/vcons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vcons.c,v 1.12 2012/10/20 12:00:33 miod Exp $ */
+/* $OpenBSD: vcons.c,v 1.13 2013/07/16 19:46:56 kettenis Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
*
@@ -90,8 +90,8 @@ vcons_attach(struct device *parent, struct device *self, void *aux)
printf(": can't map interrupt\n");
printf(": ivec 0x%lx", sysino);
- sc->sc_ih = bus_intr_establish(va->va_bustag, sysino, IPL_TTY, 0,
- vcons_intr, sc, sc->sc_dv.dv_xname);
+ sc->sc_ih = bus_intr_establish(va->va_bustag, sysino, IPL_TTY,
+ BUS_INTR_ESTABLISH_MPSAFE, vcons_intr, sc, sc->sc_dv.dv_xname);
if (sc->sc_ih == NULL) {
printf(", can't establish interrupt\n");
return;