]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: aeshash stubs for arm64
authorDavid Crawshaw <crawshaw@golang.org>
Thu, 16 Apr 2015 19:23:17 +0000 (15:23 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Thu, 16 Apr 2015 19:49:31 +0000 (19:49 +0000)
For some reason the absense of an implementation does not stop arm64
binaries being built. However it comes up with -buildmode=c-archive.

Change-Id: Ic0db5fd8fb4fe8252b5aa320818df0c7aec3db8f
Reviewed-on: https://go-review.googlesource.com/8989
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/asm_arm64.s

index a78bdc8afbff414e577be3c759ba30b0c213c13b..d124f9b7b3359e8979075868017463b6f1b2b188 100644 (file)
@@ -469,6 +469,20 @@ TEXT runtime·atomicloaduint(SB), NOSPLIT, $-8-16
 TEXT runtime·atomicstoreuintptr(SB), NOSPLIT, $0-16
        B       runtime·atomicstore64(SB)
 
+// AES hashing not implemented for ARM64, issue #10109.
+TEXT runtime·aeshash(SB),NOSPLIT,$-8-0
+       MOVW    $0, R0
+       MOVW    (R0), R1
+TEXT runtime·aeshash32(SB),NOSPLIT,$-8-0
+       MOVW    $0, R0
+       MOVW    (R0), R1
+TEXT runtime·aeshash64(SB),NOSPLIT,$-8-0
+       MOVW    $0, R0
+       MOVW    (R0), R1
+TEXT runtime·aeshashstr(SB),NOSPLIT,$-8-0
+       MOVW    $0, R0
+       MOVW    (R0), R1
+
 // bool casp(void **val, void *old, void *new)
 // Atomically:
 //     if(*val == old){