On Wed, 28 Oct 2009, Andi Kleen wrote: > > I'm just amazed that compat_ioctl should be required for all new code. > > > > DrNick on irc suggested just doing: > > if (is_compat_task()) ptr &= 0x00000000FFFFFFFF; > > Such hacks often have problems on BE.
And then some platforms (i.e. MIPS) require sign-extension rather than zero-extension, that is: if (is_compat_task()) ptr = ((ptr & 0xffffffff) ^ 0x80000000) - 0x80000000; if doing this explicitly (with compat stuff hardware will do the right thing automagically). Maciej ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel