diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-07-16 21:08:07 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-07-16 21:08:07 +0000 |
commit | c3ec84bcc9513e5f06af244ac1cf61b29784aec1 (patch) | |
tree | 45438267310f050d8a3a4a9e98ec998b9f99275d /sys/arch/sparc64/dev | |
parent | b16bbd430148907528f336c8814576e816fc5b70 (diff) |
Add support for BUS_INTR_ESTABLISH_MPSAFE. This makes the previous commit
to vcons(4) actually have an effect.
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r-- | sys/arch/sparc64/dev/vbus.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |