Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Mar 2014 16:28:57 +0100
From:      Florian Smeets <flo@smeets.im>
To:        Dimitry Andric <dim@freebsd.org>,  Craig Butler <craig001@lerwick.hopto.org>, freebsd-current@freebsd.org, freebsd-sparc64@freebsd.org,  rdivacky@FreeBSD.org
Subject:   Re: HEADS UP: sparc64 backend for llvm/clang imported
Message-ID:  <5311FCB9.60406@smeets.im>
In-Reply-To: <20140301011643.GV47921@funkthat.com>
References:  <F7AC069B-32B9-4F4E-BF19-EA2E6714F9C3@FreeBSD.org> <20140301011643.GV47921@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5311FCB9.60406>