From owner-cvs-src@FreeBSD.ORG Fri Oct 21 05:23:21 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org 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 3E5A216A41F; Fri, 21 Oct 2005 05:23:21 +0000 (GMT) (envelope-from wpaul@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DD1143D46; Fri, 21 Oct 2005 05:23:21 +0000 (GMT) (envelope-from wpaul@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9L5NK8o070835; Fri, 21 Oct 2005 05:23:20 GMT (envelope-from wpaul@repoman.freebsd.org) Received: (from wpaul@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9L5NKKK070834; Fri, 21 Oct 2005 05:23:20 GMT (envelope-from wpaul) Message-Id: <200510210523.j9L5NKKK070834@repoman.freebsd.org> From: Bill Paul Date: Fri, 21 Oct 2005 05:23:20 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/compat/ndis ntoskrnl_var.h subr_hal.c subr_ntoskrnl.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 21 Oct 2005 05:23:21 -0000 wpaul 2005-10-21 05:23:20 UTC FreeBSD src repository Modified files: sys/compat/ndis ntoskrnl_var.h subr_hal.c subr_ntoskrnl.c Log: Correct the macro definition for KeRaiseIrql(). The official API is KeRaiseIrql(newirql, &oldirql), not oldirql = KeRaiseIrql(newirql). (The macro ultimately translates to KfRaiseIrql() which does use the latter API, so this has no effect on generated code.) Also, wait for thread termination the right way: kthread_exit() will ultimately do a wakeup(td->td_proc). This is the event we should wait on. Eliminate the previous synchronization machinery for this since it was never guaranteed to work correctly. Revision Changes Path 1.40 +2 -2 src/sys/compat/ndis/ntoskrnl_var.h 1.26 +1 -1 src/sys/compat/ndis/subr_hal.c 1.76 +5 -22 src/sys/compat/ndis/subr_ntoskrnl.c