From owner-cvs-all@FreeBSD.ORG Mon Jan 12 13:00:50 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAB3A16A4CE; Mon, 12 Jan 2004 13:00:50 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8F4443D78; Mon, 12 Jan 2004 13:00:49 -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 i0CL0n0B075066; Mon, 12 Jan 2004 13:00:49 -0800 (PST) (envelope-from wpaul@repoman.freebsd.org) Received: (from wpaul@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0CL0nCF075065; Mon, 12 Jan 2004 13:00:49 -0800 (PST) (envelope-from wpaul) Message-Id: <200401122100.i0CL0nCF075065@repoman.freebsd.org> From: Bill Paul Date: Mon, 12 Jan 2004 13:00:49 -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_ntoskrnl.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2004 21:00:50 -0000 wpaul 2004/01/12 13:00:49 PST FreeBSD src repository Modified files: sys/compat/ndis kern_ndis.c subr_ntoskrnl.c Log: In if_ndis.c:ndis_intr(), be a bit more intelligent about squelching unexpected interrupts. If an interrupt is triggered and we're not finished initializing yet, bail. If we have finished initializing, but IFF_UP isn't set yet, drain the interrupt with ndis_intr() or ndis_disable_intr() as appropriate, then return _without_ scheduling ndis_intrtask(). In kern_ndis.c:ndis_load_driver() only relocate/dynalink a given driver image once. Trying to relocate an image that's already been relocated will trash the image. We poison a part of the image header that we don't otherwise need with a magic value to indicate it's already been fixed up. This fixes the case where there are multiple units of the same kind of device. Revision Changes Path 1.27 +31 -15 src/sys/compat/ndis/kern_ndis.c 1.12 +68 -2 src/sys/compat/ndis/subr_ntoskrnl.c