From owner-cvs-src@FreeBSD.ORG Sun Jan 4 13:22:27 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4963916A4CE; Sun, 4 Jan 2004 13:22:27 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4D2643D48; Sun, 4 Jan 2004 13:22:25 -0800 (PST) (envelope-from wpaul@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i04LMP0B003356; Sun, 4 Jan 2004 13:22:25 -0800 (PST) (envelope-from wpaul@repoman.freebsd.org) Received: (from wpaul@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i04LMPG6003355; Sun, 4 Jan 2004 13:22:25 -0800 (PST) (envelope-from wpaul) Message-Id: <200401042122.i04LMPG6003355@repoman.freebsd.org> From: Bill Paul Date: Sun, 4 Jan 2004 13:22:25 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/compat/ndis kern_ndis.c subr_ndis.c src/sys/dev/if_ndis if_ndis.c if_ndisvar.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jan 2004 21:22:27 -0000 wpaul 2004/01/04 13:22:25 PST FreeBSD src repository Modified files: sys/compat/ndis kern_ndis.c subr_ndis.c sys/dev/if_ndis if_ndis.c if_ndisvar.h Log: Modify if_ndis.c so that the MiniportISR function runs in ndis_intr() and MiniportHandleInterrupt() is fired off later via a task queue in ndis_intrtask(). This more accurately follows the NDIS interrupt handling model, where the ISR does a minimal amount of work in interrupt context and the handler is defered and run at a lower priority. Create a separate ndis_intrmtx mutex just for the guarding the ISR. Modify NdisSynchronizeWithInterrupt() to aquire the ndis_intrmtx mutex before invoking the synchronized procedure. (The purpose of this function is to provide mutual exclusion for code that shares variables with the ISR.) Modify NdisMRegisterInterrupt() to save a pointer to the miniport block in the ndis_miniport_interrupt structure so that NdisSynchronizeWithInterrupt() can grab it later and derive ndis_intrmtx from it. Revision Changes Path 1.21 +1 -0 src/sys/compat/ndis/kern_ndis.c 1.25 +9 -2 src/sys/compat/ndis/subr_ndis.c 1.22 +29 -4 src/sys/dev/if_ndis/if_ndis.c 1.5 +2 -0 src/sys/dev/if_ndis/if_ndisvar.h