aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2015-03-21 13:19:33 +1100
committerDave Cheney <dave@cheney.net>2015-03-21 02:59:43 +0000
commit98485f5ad4fff7d63b63cb4d93b162e892fa0285 (patch)
tree23cb1063d65b4b0a7663288552e38f14039f61b6
parent7727dee44565bed441c9fc09a2e2441ecd6b9fe7 (diff)
downloadgo-98485f5ad4fff7d63b63cb4d93b162e892fa0285.tar.xz
runtime: fix linux/amd64p32 build
Implement runtime.atomicand8 for amd64p32 which was overlooked in CL 7861. Change-Id: Ic7eccddc6fd6c4682cac1761294893928f5428a2 Reviewed-on: https://go-review.googlesource.com/7920 Reviewed-by: Minux Ma <minux@golang.org>
-rw-r--r--src/runtime/asm_amd64p32.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/runtime/asm_amd64p32.s b/src/runtime/asm_amd64p32.s
index c3a0a245a2..f8ef2f0e4e 100644
--- a/src/runtime/asm_amd64p32.s
+++ b/src/runtime/asm_amd64p32.s
@@ -541,6 +541,14 @@ TEXT runtime·atomicor8(SB), NOSPLIT, $0-5
ORB AX, 0(BX)
RET
+// void runtime·atomicand8(byte volatile*, byte);
+TEXT runtime·atomicand8(SB), NOSPLIT, $0-5
+ MOVL ptr+0(FP), BX
+ MOVB val+4(FP), AX
+ LOCK
+ ANDB AX, 0(BX)
+ RET
+
// void jmpdefer(fn, sp);
// called from deferreturn.
// 1. pop the caller