Rev 1787 | Rev 3133 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1888 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup ppc32 |
29 | /** @addtogroup ppc32 |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef __ppc32_BARRIER_H__ |
35 | #ifndef KERN_ppc32_BARRIER_H_ |
36 | #define __ppc32_BARRIER_H__ |
36 | #define KERN_ppc32_BARRIER_H_ |
37 | 37 | ||
38 | #define CS_ENTER_BARRIER() asm volatile ("" ::: "memory") |
38 | #define CS_ENTER_BARRIER() asm volatile ("" ::: "memory") |
39 | #define CS_LEAVE_BARRIER() asm volatile ("" ::: "memory") |
39 | #define CS_LEAVE_BARRIER() asm volatile ("" ::: "memory") |
40 | 40 | ||
41 | #define memory_barrier() asm volatile ("sync" ::: "memory") |
41 | #define memory_barrier() asm volatile ("sync" ::: "memory") |
42 | #define read_barrier() asm volatile ("sync" ::: "memory") |
42 | #define read_barrier() asm volatile ("sync" ::: "memory") |
43 | #define write_barrier() asm volatile ("eieio" ::: "memory") |
43 | #define write_barrier() asm volatile ("eieio" ::: "memory") |
44 | 44 | ||
45 | #endif |
45 | #endif |
46 | 46 | ||
47 | /** @} |
47 | /** @} |
48 | */ |
48 | */ |
49 | - |