Commit a6a30fef authored by Shenghou Ma's avatar Shenghou Ma Committed by Minux Ma

runtime: fix build for ARM

Change-Id: Ia18b8411bebc47ea71ac1acd9ff9dc570ec15dea
Reviewed-on: https://go-review.googlesource.com/2341Reviewed-by: 's avatarDave Cheney <dave@cheney.net>
parent df027ace
......@@ -394,7 +394,7 @@ TEXT NAME(SB), WRAPPER, $MAXSIZE-20; \
ADD R3, R1; \
ADD R3, R0; \
SUB R3, R2; \
loop:
loop: \
CMP $0, R2; \
B.EQ end; \
MOVBU.P 1(R1), R5; \
......
......@@ -38,10 +38,10 @@ func xchg(addr *uint32, v uint32) uint32 {
}
//go:nosplit
func xchgp1(addr *unsafe.Pointer, v unsafe.Pointer) unsafe.Pointer {
func xchgp1(addr unsafe.Pointer, v unsafe.Pointer) unsafe.Pointer {
for {
old := *addr
if casp1(addr, old, v) {
old := *(*unsafe.Pointer)(addr)
if casp1((*unsafe.Pointer)(addr), old, v) {
return old
}
}
......
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