Messages in this thread |  | | Date | Tue, 01 Jan 2008 18:22:24 -0800 | | From | "H. Peter Anvin" <> | | Subject | Re: asm-x86/byteorder.h: clean up for userspace |
| |
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
|  |