From owner-cvs-all@FreeBSD.ORG Thu Jan 15 18:07:09 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 392CB16A4CE; Thu, 15 Jan 2004 18:07:09 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C173543D6B; Thu, 15 Jan 2004 18:07:04 -0800 (PST) (envelope-from obrien@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 i0G2740B058909; Thu, 15 Jan 2004 18:07:04 -0800 (PST) (envelope-from obrien@repoman.freebsd.org) Received: (from obrien@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0G274xg058908; Thu, 15 Jan 2004 18:07:04 -0800 (PST) (envelope-from obrien) Message-Id: <200401160207.i0G274xg058908@repoman.freebsd.org> From: "David E. O'Brien" Date: Thu, 15 Jan 2004 18:07:04 -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 ndis_var.h ntoskrnl_var.h 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: Fri, 16 Jan 2004 02:07:09 -0000 obrien 2004/01/15 18:07:04 PST FreeBSD src repository Modified files: sys/compat/ndis ndis_var.h ntoskrnl_var.h Log: The ndis_kspin_lock type is called KSPIN_LOCK in MS-Windows. According to the Windows DDK header files, KSPIN_LOCK is defined like this: typedef ULONG_PTR KSPIN_LOCK; From basetsd.h (SDK, Feb. 2003): typedef [public] unsigned __int3264 ULONG_PTR, *PULONG_PTR; typedef unsigned __int64 ULONG_PTR, *PULONG_PTR; typedef _W64 unsigned long ULONG_PTR, *PULONG_PTR; The keyword __int3264 specifies an integral type that has the following properties: + It is 32-bit on 32-bit platforms + It is 64-bit on 64-bit platforms + It is 32-bit on the wire for backward compatibility. It gets truncated on the sending side and extended appropriately (signed or unsigned) on the receiving side. Thus register_t seems the proper mapping onto FreeBSD for spin locks. Revision Changes Path 1.16 +1 -1 src/sys/compat/ndis/ndis_var.h 1.5 +22 -1 src/sys/compat/ndis/ntoskrnl_var.h