diff --git a/src/pkg/runtime/asm_amd64p32.s b/src/pkg/runtime/asm_amd64p32.s index 71ea4f385a2..3e84d95d3f8 100644 --- a/src/pkg/runtime/asm_amd64p32.s +++ b/src/pkg/runtime/asm_amd64p32.s @@ -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