diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-09-17 17:48:24 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-09-17 17:48:24 -0700 |
commit | 21b38e8bcc2402d1324b5864853e1e12098f2443 (patch) | |
tree | d7e0f2d2e5d12a73f9b2c014690ca036ca5da19b | |
parent | 7dacdbef528f7b556f23c1b02a360363dc556e31 (diff) | |
parent | ec8bdfae7f2159758fe8ec0cb9dbe6ea7c14b961 (diff) |
Merge pull request #6182 from zchee:atomicbitops-bp
PiperOrigin-RevId: 397432940
-rw-r--r-- | pkg/atomicbitops/atomicbitops_amd64.s | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/pkg/atomicbitops/atomicbitops_amd64.s b/pkg/atomicbitops/atomicbitops_amd64.s index 54c887ee5..cbaf716bb 100644 --- a/pkg/atomicbitops/atomicbitops_amd64.s +++ b/pkg/atomicbitops/atomicbitops_amd64.s @@ -17,24 +17,24 @@ #include "textflag.h" TEXT ·AndUint32(SB),$0-12 - MOVQ addr+0(FP), BP + MOVQ addr+0(FP), BX MOVL val+8(FP), AX LOCK - ANDL AX, 0(BP) + ANDL AX, 0(BX) RET TEXT ·OrUint32(SB),$0-12 - MOVQ addr+0(FP), BP + MOVQ addr+0(FP), BX MOVL val+8(FP), AX LOCK - ORL AX, 0(BP) + ORL AX, 0(BX) RET TEXT ·XorUint32(SB),$0-12 - MOVQ addr+0(FP), BP + MOVQ addr+0(FP), BX MOVL val+8(FP), AX LOCK - XORL AX, 0(BP) + XORL AX, 0(BX) RET TEXT ·CompareAndSwapUint32(SB),$0-20 @@ -47,24 +47,24 @@ TEXT ·CompareAndSwapUint32(SB),$0-20 RET TEXT ·AndUint64(SB),$0-16 - MOVQ addr+0(FP), BP + MOVQ addr+0(FP), BX MOVQ val+8(FP), AX LOCK - ANDQ AX, 0(BP) + ANDQ AX, 0(BX) RET TEXT ·OrUint64(SB),$0-16 - MOVQ addr+0(FP), BP + MOVQ addr+0(FP), BX MOVQ val+8(FP), AX LOCK - ORQ AX, 0(BP) + ORQ AX, 0(BX) RET TEXT ·XorUint64(SB),$0-16 - MOVQ addr+0(FP), BP + MOVQ addr+0(FP), BX MOVQ val+8(FP), AX LOCK - XORQ AX, 0(BP) + XORQ AX, 0(BX) RET TEXT ·CompareAndSwapUint64(SB),$0-32 |