summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2005-12-24 04:42:19 +0000
committerdjm <djm@openbsd.org>2005-12-24 04:42:19 +0000
commit8a1117618bab20d1336a0563038d37c9c24a4fa4 (patch)
tree2c35866a627a2f4a6832b6528935c1ba0f1f5168
parentremove useless cvs_buf_alloc() failure checks; (diff)
downloadwireguard-openbsd-8a1117618bab20d1336a0563038d37c9c24a4fa4.tar.xz
wireguard-openbsd-8a1117618bab20d1336a0563038d37c9c24a4fa4.zip
establish interrupt at IPL_TTY instead of IPL_HIGH, so it doesn't
reenter comstart; pr #4947 and fix from Kudo Takashi, ok deraadt@
-rw-r--r--sys/dev/puc/com_puc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/puc/com_puc.c b/sys/dev/puc/com_puc.c
index 13ce0303bae..281398e4070 100644
--- a/sys/dev/puc/com_puc.c
+++ b/sys/dev/puc/com_puc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com_puc.c,v 1.10 2005/11/21 18:16:42 millert Exp $ */
+/* $OpenBSD: com_puc.c,v 1.11 2005/12/24 04:42:19 djm Exp $ */
/*
* Copyright (c) 1997 - 1999, Jason Downs. All rights reserved.
@@ -109,7 +109,7 @@ com_puc_attach(parent, self, aux)
/* Grab a PCI interrupt. */
intrstr = pci_intr_string(pa->pc, pa->intrhandle);
sc->sc_ih = pci_intr_establish(pa->pc, pa->intrhandle,
- IPL_HIGH, comintr, sc,
+ IPL_TTY, comintr, sc,
sc->sc_dev.dv_xname);
if (sc->sc_ih == NULL) {
printf(": couldn't establish interrupt");