Re: asm-x86/byteorder.h: clean up for userspace

From: H. Peter Anvin
Date: Tue Jan 01 2008 - 21:26:57 EST


Adrian Bunk wrote:

Userspace either has to #define CONFIG_X86_BSWAP or it'll get the slow versions of these functions...

Leaking CONFIG_ variables to userspace is not really funny - I remember e.g. what tricks MySQL does (did?) for (ab)using asm-i386/atomic.h in userspace.


True. CONFIG_X86_BSWAP isn't appropriate for userspace anyway, userspace needs to use the appropriate gcc intrinsics for 486+.

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/