mirror of
https://github.com/golang/go
synced 2024-11-23 09:00:04 -07:00
runtime: add atomicor8 for amd64p32
LGTM=khr R=golang-codereviews, daniel.morsing, khr, rsc CC=golang-codereviews, khr, rlh https://golang.org/cl/131950043
This commit is contained in:
parent
b95ed83480
commit
ddce7c35f4
@ -660,6 +660,14 @@ TEXT runtime·atomicstore64(SB), NOSPLIT, $0-16
|
||||
XCHGQ AX, 0(BX)
|
||||
RET
|
||||
|
||||
// void runtime·atomicor8(byte volatile*, byte);
|
||||
TEXT runtime·atomicor8(SB), NOSPLIT, $0-8
|
||||
MOVL ptr+0(FP), BX
|
||||
MOVB val+4(FP), AX
|
||||
LOCK
|
||||
ORB AX, 0(BX)
|
||||
RET
|
||||
|
||||
// void jmpdefer(fn, sp);
|
||||
// called from deferreturn.
|
||||
// 1. pop the caller
|
||||
|
Loading…
Reference in New Issue
Block a user