]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: x86/curve25519 - support assemblers with no adx support
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 1 Mar 2020 14:52:35 +0000 (22:52 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 5 Mar 2020 07:28:09 +0000 (18:28 +1100)
commit6bf804889fa34914a3a501fbfdabdab76a2e3b62
treefbec2103aa55f71c32035e1e0cfdf530d8939059
parentc6f0617e989b01454bfd6c9b7476a6cf4f3d6737
crypto: x86/curve25519 - support assemblers with no adx support

Some older version of GAS do not support the ADX instructions, similarly
to how they also don't support AVX and such. This commit adds the same
build-time detection mechanisms we use for AVX and others for ADX, and
then makes sure that the curve25519 library dispatcher calls the right
functions.

Reported-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/Makefile
arch/x86/crypto/Makefile
include/crypto/curve25519.h