Index: src/pkg/runtime/runtime.h |
=================================================================== |
--- a/src/pkg/runtime/runtime.h |
+++ b/src/pkg/runtime/runtime.h |
@@ -416,7 +416,10 @@ |
int32 runtime·mincore(void*, uintptr, byte*); |
bool runtime·cas(uint32*, uint32, uint32); |
bool runtime·casp(void**, void*, void*); |
+// Don't confuse with XADD x86 instruction, |
+// this one is actually 'addx', that is, add-and-fetch. |
uint32 runtime·xadd(uint32 volatile*, int32); |
+uint32 runtime·atomicload(uint32 volatile*); |
void runtime·jmpdefer(byte*, void*); |
void runtime·exit1(int32); |
void runtime·ready(G*); |