diff options
author | 2000-11-08 11:34:23 +0000 | |
---|---|---|
committer | 2000-11-08 11:34:23 +0000 | |
commit | 0c092dcbc6c0e8de5b04baeb3e3263ed29e76f90 (patch) | |
tree | f7966cba037d61bda6cfc2355b2e269a57033817 /sys | |
parent | OpenBSD tag (diff) | |
download | wireguard-openbsd-0c092dcbc6c0e8de5b04baeb3e3263ed29e76f90.tar.xz wireguard-openbsd-0c092dcbc6c0e8de5b04baeb3e3263ed29e76f90.zip |
Use netisr_dispatch.h
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/isa/icu.s | 49 |
1 files changed, 6 insertions, 43 deletions
diff --git a/sys/arch/i386/isa/icu.s b/sys/arch/i386/isa/icu.s index 90d52454b93..798eb16f85f 100644 --- a/sys/arch/i386/isa/icu.s +++ b/sys/arch/i386/isa/icu.s @@ -1,4 +1,4 @@ -/* $OpenBSD: icu.s,v 1.12 1999/12/08 06:50:15 itojun Exp $ */ +/* $OpenBSD: icu.s,v 1.13 2000/11/08 11:34:23 art Exp $ */ /* $NetBSD: icu.s,v 1.45 1996/01/07 03:59:34 mycroft Exp $ */ /*- @@ -138,11 +138,11 @@ IDTVEC(softtty) #endif jmp %esi -#define DONET(s, c) \ - .globl c ;\ +#define DONETISR(s, c) \ + .globl _C_LABEL(c) ;\ testl $(1 << s),%edi ;\ jz 1f ;\ - call c ;\ + call _C_LABEL(c) ;\ 1: IDTVEC(softnet) @@ -150,47 +150,10 @@ IDTVEC(softnet) movl %eax,_cpl xorl %edi,%edi xchgl _netisr,%edi -#ifdef INET -#include "ether.h" -#if NETHER > 0 - DONET(NETISR_ARP, _arpintr) -#endif - DONET(NETISR_IP, _ipintr) -#endif -#ifdef INET6 - DONET(NETISR_IPV6, _ip6intr) -#endif /* INET6 */ -#ifdef NETATALK - DONET(NETISR_ATALK, _atintr) -#endif -#ifdef IMP - DONET(NETISR_IMP, _impintr) -#endif -#ifdef IPX - DONET(NETISR_IPX, _ipxintr) -#endif -#ifdef NS - DONET(NETISR_NS, _nsintr) -#endif -#ifdef ISO - DONET(NETISR_ISO, _clnlintr) -#endif -#ifdef CCITT - DONET(NETISR_CCITT, _ccittintr) -#endif -#ifdef NATM - DONET(NETISR_NATM, _natmintr) -#endif -#include "ppp.h" -#if NPPP > 0 - DONET(NETISR_PPP, _pppintr) -#endif -#include "bridge.h" -#if NBRIDGE > 0 - DONET(NETISR_BRIDGE, _bridgeintr) -#endif +#include <net/netisr_dispatch.h> movl %ebx,_cpl jmp %esi +#undef DONETISR IDTVEC(softclock) leal SIR_CLOCKMASK(%ebx),%eax |