[ofw] Error in winverbs wxp build

Anatoly Greenblatt anatolyg at voltaire.com
Sun Aug 3 04:37:24 PDT 2008


This fixes winverbs compilation problems in winxp

Regards,
Anatoly.


Index: kernel/wv_driver.h
===================================================================
--- kernel/wv_driver.h	(revision 1458)
+++ kernel/wv_driver.h	(working copy)
@@ -41,6 +41,13 @@
 #include <rdma\verbs.h>
 #include "wv_ioctl.h"
 
+#if WINVER <= _WIN32_WINNT_WINXP
+#define KGUARDED_MUTEX FAST_MUTEX
+#define KeInitializeGuardedMutex ExInitializeFastMutex
+#define KeAcquireGuardedMutex ExAcquireFastMutex 
+#define KeReleaseGuardedMutex ExReleaseFastMutex
+#endif
+
 extern WDFDEVICE			ControlDevice;
 
 typedef struct _WV_RDMA_DEVICE

-----Original Message-----
From: Sean Hefty [mailto:sean.hefty at intel.com] 
Sent: Thursday, July 31, 2008 21:10
To: Anatoly Greenblatt; ofw at lists.openfabrics.org
Subject: RE: [ofw] Error in winverbs wxp build

Was this patch was committed to SVN?  (I can't check that right now.)

If supporting XP-32 requires only minor changes, I don't have any issue
supporting it.  I wasn't worrying about it before, since I saw errors in
the XP
build for portions of the existing stack, but those appear to have been
fixed
now.

- Sean

>Forgot to mention that this is only for winxp build.
>
>Anatoly.
>
>________________________________
>
>From: ofw-bounces at lists.openfabrics.org on behalf of Anatoly Greenblatt
>Sent: Mon 7/28/2008 11:28 PM
>To: ofw at lists.openfabrics.org
>Subject: RE: [ofw] Error in winverbs wxp build
>
>
>
>I've added a quick'n'dirty patch in wv_ioctl that defines
Ke...GuardedMutex as
>Ex...FastMutex.
>
>Anatoly.
>
>
>________________________________
>
>From: Fab Tillier [mailto:ftillier at windows.microsoft.com]
>Sent: Mon 7/28/2008 7:43 PM
>To: Anatoly Greenblatt; ofw at lists.openfabrics.org
>Subject: RE: [ofw] Error in winverbs wxp build
>
>
>
>>From: Anatoly Greenblatt
>>Sent: Sunday, July 27, 2008 3:06 AM
>>
>>Hi,
>>
>>Guarded mutexes are not available in winxp, but only in ws2k3 and
later.
>
>I guess this brings up the question of whether WinVerbs should be
supported on
>32-bit Windows XP (64-bit Windows XP is covered by the Windows Server
2003
>drivers.)
>
>My inclination is no, though I don't know if there is a requirement for
>WinVerbs to work on 32-bit XP or not.
>
>-Fab
>
>
>_______________________________________________
>ofw mailing list
>ofw at lists.openfabrics.org
>http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
>
>
>_______________________________________________
>ofw mailing list
>ofw at lists.openfabrics.org
>http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_guarded_mutex_winxp.patch
Type: application/octet-stream
Size: 563 bytes
Desc: fix_guarded_mutex_winxp.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080803/016694c4/attachment.obj>


More information about the ofw mailing list