<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/u-boot/include/compiler.h, branch master</title>
<subtitle>Broadcom-s U-Boot</subtitle>
<id>https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/'/>
<updated>2018-09-11T00:48:16Z</updated>
<entry>
<title>Remove CONFIG_USE_STDINT</title>
<updated>2018-09-11T00:48:16Z</updated>
<author>
<name>Masahiro Yamada</name>
</author>
<published>2018-08-06T11:47:38Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=9865543ae65d7c9a435eedfc6a0ba23efb291121'/>
<id>urn:sha1:9865543ae65d7c9a435eedfc6a0ba23efb291121</id>
<content type='text'>
You do not need to use the typedefs provided by compiler.

Our compilers are either IPL32 or LP64.  Hence, U-Boot can/should
always use int-ll64.h typedefs like Linux kernel, whatever the
typedefs the compiler internally uses.

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>Fix FreeBSD endian checks</title>
<updated>2018-02-06T01:58:11Z</updated>
<author>
<name>Justin Hibbits</name>
</author>
<published>2018-01-30T04:23:36Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=f29aa23b54e26d212cc61c07bcbb66ed5d6f9704'/>
<id>urn:sha1:f29aa23b54e26d212cc61c07bcbb66ed5d6f9704</id>
<content type='text'>
FreeBSD, like OpenBSD, uses BIG_ENDIAN, LITTLE_ENDIAN, and BYTE_ORDER,
whereas Linux and compatibles use __-prefixed names.  Define the names
the same as the OpenBSD block below it.
</content>
</entry>
<entry>
<title>compiler.h: use u-boot endian macros on OpenBSD</title>
<updated>2016-12-03T02:32:38Z</updated>
<author>
<name>Jonathan Gray</name>
</author>
<published>2016-11-26T04:18:00Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=fd184b9c8003811d797dfc64af6375ecb43cc79d'/>
<id>urn:sha1:fd184b9c8003811d797dfc64af6375ecb43cc79d</id>
<content type='text'>
When building u-boot on sparc64 and powerpc hosts it became clear that
u-boot expects endian conversion defines to be macros:

lib/crc32.c:87: error: braced-group within expression allowed only inside a function

For OpenBSD switch from using system definitions equivalent to the u-boot ones
and define glibc __BYTE_ORDER __BIG_ENDIAN __LITTLE_ENDIAN names, as at least
some parts of the non-cross build assumes those names are present (ie crc32.c).

Signed-off-by: Jonathan Gray &lt;jsg@jsg.id.au&gt;
</content>
</entry>
<entry>
<title>compiler.h: use system endian macros on OpenBSD</title>
<updated>2016-09-07T12:49:06Z</updated>
<author>
<name>Jonathan Gray</name>
</author>
<published>2016-09-02T22:26:55Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=3715a540c49335532fb0f75f5b18bc9e269f4471'/>
<id>urn:sha1:3715a540c49335532fb0f75f5b18bc9e269f4471</id>
<content type='text'>
The u-boot endian macros map directly to system endian
macros on OpenBSD.

Signed-off-by: Jonathan Gray &lt;jsg@jsg.id.au&gt;
</content>
</entry>
<entry>
<title>Revert "include/linux: move typdef for uintptr_t"</title>
<updated>2015-12-16T12:11:15Z</updated>
<author>
<name>York Sun</name>
</author>
<published>2015-12-16T06:12:24Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=2e680f92b888b4cb2fde2b0c77cbde22b48933f5'/>
<id>urn:sha1:2e680f92b888b4cb2fde2b0c77cbde22b48933f5</id>
<content type='text'>
This reverts commit e8f954a756a825130d11b9c8fca70101dd8b3ac5, which
causes compiling errors on 32-bit hosts.

Acked-by: Aneesh Bansal &lt;aneesh.bansal@freescale.com&gt;
Signed-off-by: York Sun &lt;yorksun@freescale.com&gt;
</content>
</entry>
<entry>
<title>include/linux: move typdef for uintptr_t</title>
<updated>2015-12-15T00:57:34Z</updated>
<author>
<name>Aneesh Bansal</name>
</author>
<published>2015-12-08T08:24:28Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=e8f954a756a825130d11b9c8fca70101dd8b3ac5'/>
<id>urn:sha1:e8f954a756a825130d11b9c8fca70101dd8b3ac5</id>
<content type='text'>
uintptr_t which is a typdef for unsigned long is needed for creating
pointers (32 or 64 bit depending on Core) from 32 bit variables
storing the address.
If a 32 bit variable (u32) is typecasted to a pointer (void *),
compiler gives a warning in case size of pointer on the core is 64 bit.

The typdef has been moved from include/compiler.h to include/linux/types.h

Signed-off-by: Aneesh Bansal &lt;aneesh.bansal@freescale.com&gt;
Reviewed-by: York Sun &lt;yorksun@freescale.com&gt;
</content>
</entry>
<entry>
<title>Provide option to avoid defining a custom version of uintptr_t.</title>
<updated>2014-10-27T15:04:01Z</updated>
<author>
<name>Gabe Black</name>
</author>
<published>2014-10-15T10:38:30Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=0d296cc2d3b8e2ffa46b4a93d1398fa6bf85b504'/>
<id>urn:sha1:0d296cc2d3b8e2ffa46b4a93d1398fa6bf85b504</id>
<content type='text'>
There's a definition in stdint.h (provided by gcc) which will be more correct
if available.

Define CONFIG_USE_STDINT to use this feature, or USE_STDINT=1 on the 'make'
commmand.

This adjusts the settings for x86 and sandbox, with both have 64-bit options.

Signed-off-by: Gabe Black &lt;gabeblack@google.com&gt;
Reviewed-by: Gabe Black &lt;gabeblack@chromium.org&gt;
Tested-by: Gabe Black &lt;gabeblack@chromium.org&gt;
Reviewed-by: Bill Richardson &lt;wfrichar@google.com&gt;
Rewritten to be an option, since stdint.h is often available only in glibc.
Changed to preserve a clear boundary between stdint and non-stdint
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>tools: compiler.h: Fix build on FreeBSD</title>
<updated>2014-10-10T20:00:01Z</updated>
<author>
<name>Jeroen Hofstee</name>
</author>
<published>2014-10-07T20:42:27Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=ed8271d11c5c7a31eb49f787fa25eece6b82bb9e'/>
<id>urn:sha1:ed8271d11c5c7a31eb49f787fa25eece6b82bb9e</id>
<content type='text'>
Commit 832472 "tools: socfpga: Add socfpga preloader signing
to mkimage" added tools/socfpga.c which relies on htole32,
le32toh and friends. While compiler.h includes these protypes
for linux from endian.h, it doesn't do so for FreeBSD. Hence
include &lt;sys/endian.h&gt; for FreeBSD.

Cc: Marek Vasut &lt;marex@denx.de&gt;
CC: Tom Rini &lt;trini@ti.com&gt;
Signed-off-by: Jeroen Hofstee &lt;jeroen@myspectrum.nl&gt;
</content>
</entry>
<entry>
<title>compiler.h: remove duplicated uninitialized_var</title>
<updated>2014-09-24T22:30:29Z</updated>
<author>
<name>Jeroen Hofstee</name>
</author>
<published>2014-09-17T18:33:48Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=87f13aa00d0279fcc96530404c3a104eb4cb1672'/>
<id>urn:sha1:87f13aa00d0279fcc96530404c3a104eb4cb1672</id>
<content type='text'>
Since clang has a different definition for uninitialized_var
it will complain that it is redefined in include/compiler.h.
Since these are already defined in linux/compiler.h just remove
this instance.

Cc: Masahiro Yamada &lt;yamada.m@jp.panasonic.com&gt;
Cc: Tom Rini &lt;trini@ti.com&gt;
Signed-off-by: Jeroen Hofstee &lt;jeroen@myspectrum.nl&gt;
</content>
</entry>
<entry>
<title>tools: compiler.h: add missing time.h</title>
<updated>2014-07-22T11:44:25Z</updated>
<author>
<name>Jeroen Hofstee</name>
</author>
<published>2014-06-25T21:02:21Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=9d16e93dc25025b29d3450537d180fd6e7c72e00'/>
<id>urn:sha1:9d16e93dc25025b29d3450537d180fd6e7c72e00</id>
<content type='text'>
genimg_print_time uses time_t, but time.h is never included.
Linux gets away with this since types.h includes time.h.
Explicitly include the header file so building on e.g. FreeBSD
also works.

cc: Tom Rini &lt;trini@ti.com&gt;
Signed-off-by: Jeroen Hofstee &lt;jeroen@myspectrum.nl&gt;
</content>
</entry>
</feed>
