Index | Thread | Search

From:
George Koehler <kernigh@gmail.com>
Subject:
Re: powerpc minimal AT_HWCAP support
To:
Jeremie Courreges-Anglas <jca@wxcvbn.org>
Cc:
Landry Breuil <landry@openbsd.org>, tech@openbsd.org
Date:
Mon, 15 Jul 2024 18:14:57 -0400

Download raw body.

Thread
On Mon, 15 Jul 2024 19:09:09 +0200
Jeremie Courreges-Anglas <jca@wxcvbn.org> wrote:

> > my macppc is taking dust somewhere in a drawer, but if i understand it
> > right, a potential user of this might be nss (with ifdefs changed..)
> > 
> > https://searchfox.org/mozilla-central/source/security/nss/lib/freebl/blinit.c#535
> 
> That's rather something for powerpc64.  FreeBSD sets the
> PPC_FEATURE2_HAS_VEC_CRYPTO (0x02000000) for Power8 and 9.
> 
> There's a mismatch in naming between Linux and FreeBSD here, Linux
> names that flag PPC_FEATURE2_VEC_CRYPTO.  Pfff... at least the values
> are consistent.

I guess that we can't use this.  The flag causes ppc_crypto_support()
to return true, but freebl/chacha20poly1305.c calls this function only
for little-endian powerpc64, and we're big-endian.

I have seen the AT_HWCAP diffs for powerpc and powerpc64 but not yet
compiled them.
--gkoehler