[ofw] Porting OFA stack to WDK

Leonid Keller leonid at mellanox.co.il
Wed Feb 13 01:45:27 PST 2008


The new ConnectX driver is being developed in WDF environment and
requires WDK tools for its build.
 
While trying to build OFA stack in WDK environment i've come across a
__ptr64 problem.
This attribute causes the WDK compiler crash in checked x86 environment.
Instead of searching some workaround, i'm going to perform the following
"drastic" solution:
    - remove __ptr64 attribute from all the functions of the stack;
    - remove __ptr64 attribute from all the structures except the Ioctl
ones;
    - use PtrToPtr64 function while the assignment of __ptr64 Ioctl
fields (only in user space);
    - remove unnecessary castings, related to __ptr64 attriubute all
over the code, if any;
 
The changes wrt ioctls will be committed separately to facilitate the
code review.
 
Any comments/suggestions/objections ?
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080213/70efcaa9/attachment.html>


More information about the ofw mailing list