diff options
author | Jason Wright <jason@cvs.openbsd.org> | 1999-05-24 23:09:12 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 1999-05-24 23:09:12 +0000 |
commit | 8337fe0f9b1f07061deb94b937c2bc9ef840c067 (patch) | |
tree | 4fb50e82017e05ca85e4cad964b55c4908c47168 /sys/arch/wgrisc | |
parent | 1a875079809eb31d2a080e005d76f4f634ebb771 (diff) |
Only do basic work in the ethernet interrupt context, and queue packets to
be bridged. Do the real work in a scheduled netisr.
Diffstat (limited to 'sys/arch/wgrisc')
-rw-r--r-- | sys/arch/wgrisc/wgrisc/trap.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/arch/wgrisc/wgrisc/trap.c b/sys/arch/wgrisc/wgrisc/trap.c index 035476d1dbf..7b04ac9aa3f 100644 --- a/sys/arch/wgrisc/wgrisc/trap.c +++ b/sys/arch/wgrisc/wgrisc/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.3 1999/01/08 00:03:00 deraadt Exp $ */ +/* $OpenBSD: trap.c,v 1.4 1999/05/24 23:09:10 jason Exp $ */ /* * Copyright (c) 1988 University of Utah. * Copyright (c) 1992, 1993 @@ -39,7 +39,7 @@ * from: Utah Hdr: trap.c 1.32 91/04/06 * * from: @(#)trap.c 8.5 (Berkeley) 1/11/94 - * $Id: trap.c,v 1.3 1999/01/08 00:03:00 deraadt Exp $ + * $Id: trap.c,v 1.4 1999/05/24 23:09:10 jason Exp $ */ #include <sys/param.h> @@ -1041,6 +1041,13 @@ interrupt(statusReg, causeReg, pc, what, args) pppintr(); } #endif +#include "bridge.h" +#if NBRIDGE > 0 + if(netisr & (1 << NETISR_BRIDGE)) { + netisr &= ~(1 << NETISR_BRIDGE); + bridgeintr(); + } +#endif } if (mask & SOFT_INT_MASK_0) { clearsoftclock(); |