From owner-freebsd-arm@FreeBSD.ORG Thu Apr 17 18:01:24 2014 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9D1AD437; Thu, 17 Apr 2014 18:01:24 +0000 (UTC) Received: from gromit.grondar.org (grandfather.grondar.org [IPv6:2a01:348:0:15:5d59:5c20:0:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 601271DDF; Thu, 17 Apr 2014 18:01:24 +0000 (UTC) Received: from [2001:470:9174:1:f8c1:b412:e2cf:d4d8] by gromit.grondar.org with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1WaqcZ-0008jX-Nb; Thu, 17 Apr 2014 19:01:20 +0100 Subject: Re: Building an ARM/RPI-B release (hacked) on CURRENT/AMD64. Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: multipart/signed; boundary="Apple-Mail=_9F8B3F32-4CE3-436D-9819-4A8E7A8EB14B"; protocol="application/pgp-signature"; micalg=pgp-sha512 From: Mark R V Murray In-Reply-To: <1397738961.1124.157.camel@revolution.hippie.lan> Date: Thu, 17 Apr 2014 19:01:31 +0100 Message-Id: References: <9FDD6F0E-B2A9-48D9-A3E4-181868995FDA@grondar.org> <20140417103117.GE44138@cicely7.cicely.de> <1397738961.1124.157.camel@revolution.hippie.lan> To: Ian Lepore X-Mailer: Apple Mail (2.1874) X-SA-Score: -1.0 Cc: Tim Kientzle , freebsd-arm , ticso@cicely.de X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2014 18:01:24 -0000 --Apple-Mail=_9F8B3F32-4CE3-436D-9819-4A8E7A8EB14B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 17 Apr 2014, at 13:49, Ian Lepore wrote: > U-boot requires that a global register be set aside by the compiler = and > it's used to access all global vars. As I vaguely understand it, = u-boot > used to want r8 for this, and clang didn't used to support the concept > at all. Now clang supports it, but only for r9, and apparently more > recent u-boot expects r9 rather than r8. So the fix is probably to = use > more recent u-boot sources (I've been using 2014.01 for imx6 stuff), = and > probably to add the new -ffixed-r9 flag for a clang build. Correct. The pig in trying to build u-boot 2004.04 with Clang/XDEV is the use of #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t = *gd asm ("r9=94) which means =93gd is an alias for the r9 register and is a pointer to = type =85=94 =85 I think. :-) Clang doesn=92t like this one bit. First objection is to =93global = register variables=94, so if I experimentally knock out the =93register=94= , I simply get the second objection - to "multiple instances of the r9 = global variable=94. Googling a bit suggests that Clang just plain can=92t do this. :-( M --=20 Mark R V Murray --Apple-Mail=_9F8B3F32-4CE3-436D-9819-4A8E7A8EB14B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: GPGTools - http://gpgtools.org iQCVAwUBU1AW/958vKOKE6LNAQrR9wP8DMQ8uE2b/wnYmacp3WBinrKQKcle5EjQ YhGVIZvXiqfksXv0k8lVkrlbeTDwg90BqMxhnFGIUdf9/XrohBlK2blw1S4eTL+q 7TjerwJP9MDVgjyLCxsrqXHz1VVLrJl2FHbukrkj2MHK7DnOq8YQDe/x4yaeyNyg LRuOkgbzC0s= =aAjc -----END PGP SIGNATURE----- --Apple-Mail=_9F8B3F32-4CE3-436D-9819-4A8E7A8EB14B--