[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <477AF560.1000002@zytor.com>
Date: Tue, 01 Jan 2008 18:22:24 -0800
From: "H. Peter Anvin" <hpa@...or.com>
To: Adrian Bunk <bunk@...nel.org>
CC: Christoph Hellwig <hch@...radead.org>,
Mike Frysinger <vapier@...too.org>, tglx@...utronix.de,
mingo@...hat.com, Andi Kleen <andi@...stfloor.org>,
LKML <linux-kernel@...r.kernel.org>
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists