[U-Boot] [RFC PATCH 03/20] sandbox: Add compiler defines to support a 64-bit x86_64 platform

Mike Frysinger vapier at gentoo.org
Sun Sep 18 01:56:50 CEST 2011


On Saturday, September 17, 2011 12:48:42 Simon Glass wrote:
> Temporary fix for 64-bit building.

why is it temporary ?  why not fix it permanently ?

> --- a/include/compiler.h
> +++ b/include/compiler.h
>
>  #include <linux/types.h>
>  #include <asm/byteorder.h>
> 
> +#if __SIZEOF_LONG__ == 8
> +# define __WORDSIZE	64
> +#elif __SIZEOF_LONG__ == 4
> +# define __WORDSIZE	32
> +#else
> +#error "__SIZEOF_LONG__ has unexpected value"
> +#endif

change "#else" to "#elif !defined __WORDSIZE"
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110917/e1980e38/attachment.pgp 


More information about the U-Boot mailing list