]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix linux/amd64p32 build
authorDave Cheney <dave@cheney.net>
Sat, 21 Mar 2015 02:19:33 +0000 (13:19 +1100)
committerDave Cheney <dave@cheney.net>
Sat, 21 Mar 2015 02:59:43 +0000 (02:59 +0000)
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>
src/runtime/asm_amd64p32.s

index c3a0a245a2eba2b8d41c7101895e4e0a63e88ace..f8ef2f0e4ed32f038515c425374e9af325d959ab 100644 (file)
@@ -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