diff options
author | 2008-01-19 18:26:18 +0000 | |
---|---|---|
committer | 2008-01-19 18:26:18 +0000 | |
commit | 5ad47b20a36d208b86f6e51a72491bc7aaaba699 (patch) | |
tree | e116c3a1ffc36eb3bef43a7170152cead7203657 | |
parent | Simplify CLKF_INTR by making it look at the saved interrupt level, (diff) | |
download | wireguard-openbsd-5ad47b20a36d208b86f6e51a72491bc7aaaba699.tar.xz wireguard-openbsd-5ad47b20a36d208b86f6e51a72491bc7aaaba699.zip |
Fix add_net_randomness() not being called because the wrong
bit in netisr is set. 1 != (1 << 1).
Reported by mickey, fix by me.
OK markus@, miod@, claudio@
-rw-r--r-- | sys/net/netisr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/netisr.h b/sys/net/netisr.h index 842d62de064..4c56b7e5c17 100644 --- a/sys/net/netisr.h +++ b/sys/net/netisr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: netisr.h,v 1.28 2007/09/08 02:45:04 dlg Exp $ */ +/* $OpenBSD: netisr.h,v 1.29 2008/01/19 18:26:18 mpf Exp $ */ /* $NetBSD: netisr.h,v 1.12 1995/08/12 23:59:24 mycroft Exp $ */ /* @@ -83,7 +83,7 @@ void btintr(void); #include <machine/atomic.h> #define schednetisr(anisr) \ do { \ - atomic_setbits_int(&netisr, (1 << (anisr)) | NETISR_RND); \ + atomic_setbits_int(&netisr, (1 << (anisr)) | (1 << NETISR_RND));\ setsoftnet(); \ } while (0) #endif |