Skip to content

Commit

Permalink
runtime: aeshash stubs for arm64
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
crawshaw committed Apr 16, 2015
1 parent 62353ff commit 5b72b8c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/runtime/asm_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 5b72b8c

Please sign in to comment.