From owner-freebsd-sparc64@FreeBSD.ORG Sat Mar 1 15:29:24 2014 Return-Path: Delivered-To: freebsd-sparc64@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 EE137670; Sat, 1 Mar 2014 15:29:23 +0000 (UTC) Received: from mail.solomo.de (mail.solomo.de [IPv6:2a01:4f8:162:1142::2]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9850213DE; Sat, 1 Mar 2014 15:29:23 +0000 (UTC) Received: from cpos1.nexxtmobile.de (localhost [127.0.0.1]) by mail.solomo.de (Postfix) with ESMTP id 18FB523B95; Sat, 1 Mar 2014 16:29:22 +0100 (CET) X-Virus-Scanned: amavisd-new at nexxtmobile.de Received: from mail.solomo.de ([127.0.0.1]) by cpos1.nexxtmobile.de (cpos1.nexxtmobile.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id oegRe96D7_1z; Sat, 1 Mar 2014 16:29:20 +0100 (CET) Received: from nibbler-wlan.home.lan (unknown [IPv6:2001:4dd0:fd65:d00d:e5a5:33f0:29aa:87d5]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.solomo.de (Postfix) with ESMTPSA id 5641D23B89; Sat, 1 Mar 2014 16:29:19 +0100 (CET) Message-ID: <5311FCB9.60406@smeets.im> Date: Sat, 01 Mar 2014 16:28:57 +0100 From: Florian Smeets User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:29.0) Gecko/20100101 Thunderbird/29.0a2 MIME-Version: 1.0 To: Dimitry Andric , Craig Butler , freebsd-current@freebsd.org, freebsd-sparc64@freebsd.org, rdivacky@FreeBSD.org Subject: Re: HEADS UP: sparc64 backend for llvm/clang imported References: <20140301011643.GV47921@funkthat.com> In-Reply-To: <20140301011643.GV47921@funkthat.com> X-Enigmail-Version: 1.7a1pre Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IrLwtEVpoiKEaAjBh6t77U2pKblq7n32p" X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Mar 2014 15:29:24 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IrLwtEVpoiKEaAjBh6t77U2pKblq7n32p Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 01/03/14 02:16, John-Mark Gurney wrote: > Dimitry Andric wrote this message on Fri, Feb 28, 2014 at 20:22 +0100: >> >> For building the sparc64 kernel, there is one open issue left, which i= s >> that sys/sparc64/include/pcpu.h uses global register variables, and th= is >> is not supported by clang. A preliminary patch for this is attached, >> but it may or may not blow up your system, please beware! >> >> The patch changes the pcpu and curpcb global register variables into >> inline functions, similar to what is done on other architectures. >> However, the current approach is not optimal, and the emitted code is >> slightly different from what gcc outputs. Any improvements to this >> patch are greatly appreciated! >> >> Last but not least, thanks go out to Roman Divacky for his work with >> llvm/clang upstream in getting the sparc64 backend into shape. >=20 > Ok, I have a new pcpu patch to try. I have only compile tested it. >=20 > It is available here: > https://www.funkthat.com/~jmg/sparc64.pcpu.patch >=20 > I've also attached it. >=20 > Craig, do you mind testing it? >=20 My machine doesn't boot with this patch. OK boot -v Booting... jumping to kernel entry at 0xc0088000. OF_panic: sparc64_init: cannot find boot CPU node Program terminated {1} ok I'm now going to try the version that dim sent. Florian --IrLwtEVpoiKEaAjBh6t77U2pKblq7n32p Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJTEfzOAAoJEOcFPfn/hvB2nqYP/jHmzsPyHO9Oz8+9MrLqM4oZ rGkqJuQsbw7TlWyKfn6gPRHPTPPpigRSL20xmRDSKqojqo5HQZOESIZiRgR0GF/z YpWlL9uKlYDYU8rsxPEo+ZDf4NM7T8Zgr5aD6o5aYCEW7yS8qt+ZoALDM80Ubd58 zZ12CB9XKzlwnfL0pL+GlK6xLlcVasKJBlrJnt3tKJbnIOKfmPghayNwu4u/Y4yF TCN949cidNOWWbuaQNzpISifqJ8K7sOU2aEoPg4F39RRdwQRcSNAVeAPsth7IG9w z19kGDvKPUMcAp8+JMk5T/FdUfoXdTA1T/dEzW/Bue2kpKh3RYTYhfHm4imttk20 2wJ/f4lQIx/4sJrrguWZPCYPChFxui0SWNrXHtMPwW5G8BYLkEMprq9wx4mQGtyb Ti/8ZyCHKZxyviyZRKnUc6CZuhBlWOoT5hnA9mKzf1uB7eX7vN6i07tGwYTqNrJB 0mw2j4u/J2FgAMIBcD53ccIx8oFwMG1LT+HHbaY/QsQS/zcney/M4+qujM6EmIkV GqlBLT2tJj7RPE6mGt+eK1ebPy31ZcTCI/mOE95ZtS/DIOAfON9qKbbmlvsFQruz IoscEJiYx0IaaDtrDwXm+4Ixa7rcP+14IIQWpvev4vohxxDsHdKni+D3kvykLCHs syQeXbnuRWzjkmsJiBLb =RUpS -----END PGP SIGNATURE----- --IrLwtEVpoiKEaAjBh6t77U2pKblq7n32p--