diff options
author | 2013-07-16 21:08:06 +0000 | |
---|---|---|
committer | 2013-07-16 21:08:06 +0000 | |
commit | 31ab7659e76d7bdee6fe747179914d6c24f3f111 (patch) | |
tree | 945bd407ba87032298bb7deacc6e6c345710289b | |
parent | The interrupt handler for vcons(4) is defenitely safe to run without holding (diff) | |
download | wireguard-openbsd-31ab7659e76d7bdee6fe747179914d6c24f3f111.tar.xz wireguard-openbsd-31ab7659e76d7bdee6fe747179914d6c24f3f111.zip |
Add support for BUS_INTR_ESTABLISH_MPSAFE. This makes the previous commit
to vcons(4) actually have an effect.
-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; |