[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49D3DABA.2050001@zytor.com>
Date: Wed, 01 Apr 2009 14:20:58 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: Arnd Bergmann <arnd@...db.de>
CC: Will Newton <will.newton@...il.com>,
Geert Uytterhoeven <geert.uytterhoeven@...il.com>,
michal.simek@...alogix.com,
Linux Kernel list <linux-kernel@...r.kernel.org>,
linux-arch@...r.kernel.org, linux-api@...r.kernel.org,
Chen Liqin <liqin.chen@...plusct.com>
Subject: Re: [RFC] asm-generic/{unistd,types,posix_types}.h for new arch
Arnd Bergmann wrote:
>
> Unfortunately, there is no generic way to detect the word size yet,
> but every architecture uses its own preprocessor macro (__x86_64__,
> __s390x__, __ppc64__). We also can't use CONFIG_64BIT in an user-exported
> interface header file, because the use space can also be compiled for
> 32 bits when the kernel uses 64 bits.
>
Actually, gcc does have the _LP64 and __SIZEOF_POINTER__ macros (as well
as __CHAR_BIT__), although I don't know how far back it does have that.
If it has been with us for long enough it might be possible to
switch over to using panarch macros.
-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