From c3ec84bcc9513e5f06af244ac1cf61b29784aec1 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 16 Jul 2013 21:08:07 +0000 Subject: Add support for BUS_INTR_ESTABLISH_MPSAFE. This makes the previous commit to vcons(4) actually have an effect. --- sys/arch/sparc64/dev/vbus.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/arch/sparc64/dev') diff --git a/sys/arch/sparc64/dev/vbus.c b/sys/arch/sparc64/dev/vbus.c index 785ab7e2e7d..9af35be6b06 100644 --- a/sys/arch/sparc64/dev/vbus.c +++ b/sys/arch/sparc64/dev/vbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vbus.c,v 1.5 2010/11/11 17:58:23 miod Exp $ */ +/* $OpenBSD: vbus.c,v 1.6 2013/07/16 21:08:06 kettenis Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -201,6 +201,9 @@ vbus_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; + intr_establish(ih->ih_pil, ih); ih->ih_ack = vbus_intr_ack; -- cgit v1.2.3