github.com/twelsh-aw/go/src@v0.0.0-20230516233729-a56fe86a7c81/runtime/atomic_ppc64x.s (about) 1 // Copyright 2014 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build ppc64 || ppc64le 6 7 #include "textflag.h" 8 9 TEXT ·publicationBarrier(SB),NOSPLIT|NOFRAME,$0-0 10 // LWSYNC is the "export" barrier recommended by Power ISA 11 // v2.07 book II, appendix B.2.2.2. 12 // LWSYNC is a load/load, load/store, and store/store barrier. 13 LWSYNC 14 RET