diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-11-09 18:23:07 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-11-14 23:59:05 -0800 |
commit | 74bf57c84244034d15cee03353bcc4458371abf7 (patch) | |
tree | 6307b6e415b0d3363e0ffef287ecaa6fc0c816f1 /src/crypto/zinc/chacha20/chacha20-arm64.pl | |
parent | chacha20,poly1305: switch to perlasm originals on mips and arm (diff) | |
download | wireguard-monolithic-historical-74bf57c84244034d15cee03353bcc4458371abf7.tar.xz wireguard-monolithic-historical-74bf57c84244034d15cee03353bcc4458371abf7.zip |
chacha20,poly1305: use CONFIG_KERNEL_MODE_NEON in .pl on arm
While Andy is right to desire a separation between compiler defines and
project defines, there are simply too many odd kernel configurations and
we require testing for CONFIG_KERNEL_MODE_NEON.
Diffstat (limited to 'src/crypto/zinc/chacha20/chacha20-arm64.pl')
-rw-r--r-- | src/crypto/zinc/chacha20/chacha20-arm64.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crypto/zinc/chacha20/chacha20-arm64.pl b/src/crypto/zinc/chacha20/chacha20-arm64.pl index 7926c8d..bb148c2 100644 --- a/src/crypto/zinc/chacha20/chacha20-arm64.pl +++ b/src/crypto/zinc/chacha20/chacha20-arm64.pl @@ -385,7 +385,7 @@ my ($a,$b,$c,$d,$t)=@_; } $code.=<<___; - +#if !defined(__KERNEL__) || defined(CONFIG_KERNEL_MODE_NEON) #ifdef __KERNEL__ .globl ChaCha20_neon .type ChaCha20_neon,%function @@ -1136,6 +1136,7 @@ $code.=<<___; ret .size ChaCha20_512_neon,.-ChaCha20_512_neon #endif +#endif ___ } }}} |