diff options
Diffstat (limited to 'src/pkg/runtime/atomic_386.c')
| -rw-r--r-- | src/pkg/runtime/atomic_386.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pkg/runtime/atomic_386.c b/src/pkg/runtime/atomic_386.c index cec86e95bb..d7162a1b8b 100644 --- a/src/pkg/runtime/atomic_386.c +++ b/src/pkg/runtime/atomic_386.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 void* runtime·atomicloadp(void* volatile* addr) { return *addr; } -#pragma textflag 7 +#pragma textflag NOSPLIT uint64 runtime·xadd64(uint64 volatile* addr, int64 v) { @@ -31,7 +32,7 @@ runtime·xadd64(uint64 volatile* addr, int64 v) return old+v; } -#pragma textflag 7 +#pragma textflag NOSPLIT uint64 runtime·xchg64(uint64 volatile* addr, uint64 v) { |
