From 4a3daff206fe4de97ea63a63b6176d4e833beeaf Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Wed, 8 Nov 2000 16:22:37 +0000 Subject: use net/netisr_dispatch.h --- sys/arch/hppa/hppa/trap.c | 44 +++----------------------------------------- 1 file changed, 3 insertions(+), 41 deletions(-) diff --git a/sys/arch/hppa/hppa/trap.c b/sys/arch/hppa/hppa/trap.c index 3b93560c1c0..5ee10ff5c0a 100644 --- a/sys/arch/hppa/hppa/trap.c +++ b/sys/arch/hppa/hppa/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.21 2000/07/05 22:20:02 mickey Exp $ */ +/* $OpenBSD: trap.c,v 1.22 2000/11/08 16:22:36 mickey Exp $ */ /* * Copyright (c) 1998-2000 Michael Shalayeff @@ -416,46 +416,8 @@ return; __asm __volatile ("ldcws 0(%1), %0" : "=r" (ni) : "r" (&netisr)); splnet(); -#define DONET(m,c) if (ni & (1 << (m))) c() -#include "ether.h" -#if NETHER > 0 - DONET(NETISR_ARP, arpintr); -#endif -#ifdef INET - DONET(NETISR_IP, ipintr); -#endif -#ifdef INET6 - DONET(NETISR_IPV6, ip6intr); -#endif -#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 +#define DONETISR(m,c) if (ni & (1 << (m))) c() +#include } splx(s); break; -- cgit v1.2.3