From owner-cvs-all@FreeBSD.ORG Wed Feb 23 16:44:34 2005 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 3034816A4CE; Wed, 23 Feb 2005 16:44:34 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1859043D41; Wed, 23 Feb 2005 16:44:34 +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 j1NGiXg9065476; Wed, 23 Feb 2005 16:44:33 GMT (envelope-from wpaul@repoman.freebsd.org) Received: (from wpaul@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1NGiXoN065475; Wed, 23 Feb 2005 16:44:33 GMT (envelope-from wpaul) Message-Id: <200502231644.j1NGiXoN065475@repoman.freebsd.org> From: Bill Paul Date: Wed, 23 Feb 2005 16:44:33 +0000 (UTC) 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 ntoskrnl_var.h 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: Wed, 23 Feb 2005 16:44:34 -0000 wpaul 2005-02-23 16:44:33 UTC FreeBSD src repository Modified files: sys/compat/ndis ntoskrnl_var.h subr_ntoskrnl.c Log: Implement IoCancelIrp(), IoAcquireCancelSpinLock(), IoReleaseCancelSpinLock() and a machine-independent though inefficient InterlockedExchange(). In Windows, InterlockedExchange() appears to be implemented in header files via inline assembly. I would prefer using an atomic.h macro for this, but there doesn't seem to be one that just does a plain old atomic exchange (as opposed to compare and exchange). Also implement IoSetCancelRoutine(), which is just a macro that uses InterlockedExchange(). Fill in IoBuildSynchronousFsdRequest(), IoBuildAsynchronousFsdRequest() and IoBuildDeviceIoControlRequest() so that they do something useful, and add a bunch of #defines to ntoskrnl_var.h to help make these work. These may require some tweaks later. Revision Changes Path 1.25 +61 -2 src/sys/compat/ndis/ntoskrnl_var.h 1.52 +199 -3 src/sys/compat/ndis/subr_ntoskrnl.c