Source-Changes-HG archive

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

[src/trunk]: src/sys/crypto/chacha/arch/arm Use <aarch64/asm.h> rather than c...



details:   https://anonhg.NetBSD.org/src/rev/e2ab980d7110
branches:  trunk
changeset: 936479:e2ab980d7110
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Jul 27 20:50:25 2020 +0000

description:
Use <aarch64/asm.h> rather than copying things from it here.

Vestige from userland build on netbsd-9 during development.

diffstat:

 sys/crypto/chacha/arch/arm/chacha_neon_64.S |  20 ++------------------
 1 files changed, 2 insertions(+), 18 deletions(-)

diffs (34 lines):

diff -r b57392dc773b -r e2ab980d7110 sys/crypto/chacha/arch/arm/chacha_neon_64.S
--- a/sys/crypto/chacha/arch/arm/chacha_neon_64.S       Mon Jul 27 20:49:45 2020 +0000
+++ b/sys/crypto/chacha/arch/arm/chacha_neon_64.S       Mon Jul 27 20:50:25 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chacha_neon_64.S,v 1.1 2020/07/25 22:51:57 riastradh Exp $     */
+/*     $NetBSD: chacha_neon_64.S,v 1.2 2020/07/27 20:50:25 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -26,23 +26,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-.macro adrl    reg, addr
-       adrp    \reg, \addr
-       add     \reg, \reg, #:lo12:\addr
-.endm
-
-#define        _ALIGN_TEXT                                                           \
-       .p2align 4
-
-#define        ENTRY(x)                                                              \
-       .text;                                                                \
-       _ALIGN_TEXT;                                                          \
-       .global x;                                                            \
-       .type   x,@function;                                                  \
-x:
-
-#define        END(x)                                                                \
-       .size x, . - x
+#include <aarch64/asm.h>
 
 #define        ROUND(a0,b0,c0,d0,a1,b1,c1,d1,a2,b2,c2,d2,a3,b3,c3,d3,t0,t1,t2,t3, r) \
 STEP(STEP0,a0,b0,c0,d0,a1,b1,c1,d1,a2,b2,c2,d2,a3,b3,c3,d3,t0,t1,t2,t3, r);   \



Home | Main Index | Thread Index | Old Index