[openib-general] Data structure size mismatch

Pradeep Satyanarayana pradeep at us.ibm.com
Sun Nov 13 15:30:41 PST 2005






I am seeking suggestions with respect to the 32-bit/64-bit issues. Is the
macro test_thread_flag(TIF_32BIT), to ascertain if we are in the kernel in
the context of a 32-bit app or not, generic enought that it will work
across all the 64-bit platforms of interest. It should work for
ppc64/sparc64/x86_64/parisc. Is that good enough?

Also, do I use __LP64__ to find out if this is a 64-bit kernel? My research
has revealed that this macro will work for gcc versions greater than 3.4.
Now, Sles9sp2 uses gcc 3.3.3 and so will not work on Sles9sp2. However,
RHEL4U2 uses gcc version 3.4.4. So, even though one may be using the same
kernel version, it will work on one distro and not the other. How does one
address such issues?

Pradeep
pradeep at us.ibm.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20051113/2e9be71c/attachment.html>


More information about the general mailing list