Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/crypto/aes/arch/arm Limit aes_neon to cpu_cortex | aarch64.



details:   https://anonhg.NetBSD.org/src/rev/822178f983b9
branches:  trunk
changeset: 973428:822178f983b9
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Jun 30 17:03:13 2020 +0000

description:
Limit aes_neon to cpu_cortex | aarch64.

We won't use it on any other systems, and it doesn't build without
NEON anyway.  Verified earmv7hf GENERIC, aarch64 GENERIC64, and
earmv6 RPI2 all build with this.

diffstat:

 sys/crypto/aes/arch/arm/files.aesneon |  12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (24 lines):

diff -r 59d7a83947ea -r 822178f983b9 sys/crypto/aes/arch/arm/files.aesneon
--- a/sys/crypto/aes/arch/arm/files.aesneon     Tue Jun 30 16:28:17 2020 +0000
+++ b/sys/crypto/aes/arch/arm/files.aesneon     Tue Jun 30 17:03:13 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.aesneon,v 1.2 2020/06/29 23:57:56 riastradh Exp $
+#      $NetBSD: files.aesneon,v 1.3 2020/06/30 17:03:13 riastradh Exp $
 
 ifdef aarch64
 makeoptions    aes     "COPTS.aes_neon.c"+="-march=armv8-a"
@@ -8,10 +8,8 @@
 makeoptions    aes     "COPTS.aes_neon_subr.c"+="-mfloat-abi=softfp -mfpu=neon"
 endif
 
-file   crypto/aes/arch/arm/aes_neon.c          aes
-file   crypto/aes/arch/arm/aes_neon_impl.c     aes
-file   crypto/aes/arch/arm/aes_neon_subr.c     aes
+file   crypto/aes/arch/arm/aes_neon.c          aes & (cpu_cortex | aarch64)
+file   crypto/aes/arch/arm/aes_neon_impl.c     aes & (cpu_cortex | aarch64)
+file   crypto/aes/arch/arm/aes_neon_subr.c     aes & (cpu_cortex | aarch64)
 
-ifndef aarch64
-file   crypto/aes/arch/arm/aes_neon_32.S       aes
-endif
+file   crypto/aes/arch/arm/aes_neon_32.S       aes & cpu_cortex & !aarch64



Home | Main Index | Thread Index | Old Index