summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/atomic_amd64.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/atomic_amd64.c')
-rw-r--r--src/pkg/runtime/atomic_amd64.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pkg/runtime/atomic_amd64.c b/src/pkg/runtime/atomic_amd64.c
index e92d8ec21..0bd4d906b 100644
--- a/src/pkg/runtime/atomic_amd64.c
+++ b/src/pkg/runtime/atomic_amd64.c
@@ -3,22 +3,23 @@
// license that can be found in the LICENSE file.
#include "runtime.h"
+#include "../../cmd/ld/textflag.h"
-#pragma textflag 7
+#pragma textflag NOSPLIT
uint32
runtime·atomicload(uint32 volatile* addr)
{
return *addr;
}
-#pragma textflag 7
+#pragma textflag NOSPLIT
uint64
runtime·atomicload64(uint64 volatile* addr)
{
return *addr;
}
-#pragma textflag 7
+#pragma textflag NOSPLIT
void*
runtime·atomicloadp(void* volatile* addr)
{