aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/zinc/poly1305/poly1305-arm.pl
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-11-09 18:23:07 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-11-14 23:59:05 -0800
commit74bf57c84244034d15cee03353bcc4458371abf7 (patch)
tree6307b6e415b0d3363e0ffef287ecaa6fc0c816f1 /src/crypto/zinc/poly1305/poly1305-arm.pl
parentchacha20,poly1305: switch to perlasm originals on mips and arm (diff)
downloadwireguard-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 '')
-rw-r--r--src/crypto/zinc/poly1305/poly1305-arm.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/zinc/poly1305/poly1305-arm.pl b/src/crypto/zinc/poly1305/poly1305-arm.pl
index 88a4260..30a2005 100644
--- a/src/crypto/zinc/poly1305/poly1305-arm.pl
+++ b/src/crypto/zinc/poly1305/poly1305-arm.pl
@@ -460,7 +460,7 @@ my ($T0,$T1,$MASK) = map("q$_",(15,4,0));
my ($in2,$zeros,$tbl0,$tbl1) = map("r$_",(4..7));
$code.=<<___;
-#if __ARM_MAX_ARCH__>=7
+#if (defined(__KERNEL__) && defined(CONFIG_KERNEL_MODE_NEON)) || (!defined(__KERNEL__) && __ARM_MAX_ARCH__>=7)
.fpu neon
.type poly1305_init_neon,%function