Date: Thu, 15 Jan 2004 18:07:04 -0800 (PST) From: "David E. O'Brien" <obrien@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/ndis ndis_var.h ntoskrnl_var.h Message-ID: <200401160207.i0G274xg058908@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401160207.i0G274xg058908>