diff options
Diffstat (limited to 'sys/net/netisr.h')
-rw-r--r-- | sys/net/netisr.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/netisr.h b/sys/net/netisr.h index f227fb22dc93..621cf2268b96 100644 --- a/sys/net/netisr.h +++ b/sys/net/netisr.h @@ -71,7 +71,11 @@ void legacy_setsoftnet __P((void)); extern volatile unsigned int netisr; /* scheduling bits for network */ -#define schednetisr(anisr) { netisr |= 1 << (anisr); legacy_setsoftnet(); } +extern void (*netisrs[32]) __P((void)); +#define schednetisr(anisr) do { \ + atomic_set_rel_int(&netisr, 1 << (anisr)); \ + legacy_setsoftnet(); \ +} while (0) typedef void netisr_t __P((void)); |