Commit 43d2a10e authored by Shenghou Ma's avatar Shenghou Ma Committed by Minux Ma

runtime/internal/atomic: fix vet warnings

Change-Id: Ib29cf7abbbdaed81e918e5e41bca4e9b8da24621
Reviewed-on: https://go-review.googlesource.com/22503Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 7a964e1d
......@@ -83,7 +83,7 @@ TEXT ·Xadduintptr(SB), NOSPLIT, $0-24
TEXT ·Loadint64(SB), NOSPLIT, $0-16
JMP ·Load64(SB)
TEXT ·Xaddint64(SB), NOSPLIT, $0-16
TEXT ·Xaddint64(SB), NOSPLIT, $0-24
JMP ·Xadd64(SB)
// bool casp(void **val, void *old, void *new)
......
......@@ -8,27 +8,27 @@
#define SYNC WORD $0xf
// uint32 runtimeinternalatomic·Load(uint32 volatile* addr)
// uint32 runtimeinternalatomic·Load(uint32 volatile* ptr)
TEXT ·Load(SB),NOSPLIT,$-8-12
MOVV addr+0(FP), R1
MOVV ptr+0(FP), R1
SYNC
MOVWU 0(R1), R1
SYNC
MOVW R1, ret+8(FP)
RET
// uint64 runtimeinternalatomic·Load64(uint64 volatile* addr)
// uint64 runtimeinternalatomic·Load64(uint64 volatile* ptr)
TEXT ·Load64(SB),NOSPLIT,$-8-16
MOVV addr+0(FP), R1
MOVV ptr+0(FP), R1
SYNC
MOVV 0(R1), R1
SYNC
MOVV R1, ret+8(FP)
RET
// void *runtimeinternalatomic·Loadp(void *volatile *addr)
// void *runtimeinternalatomic·Loadp(void *volatile *ptr)
TEXT ·Loadp(SB),NOSPLIT,$-8-16
MOVV addr+0(FP), R1
MOVV ptr+0(FP), R1
SYNC
MOVV 0(R1), R1
SYNC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment