direct-io.hg

diff tools/libxc/xenctrl.h @ 10687:80055bb36dc7

[powerpc] add PowerPC support to libxc
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Jul 14 10:37:12 2006 +0100 (2006-07-14)
parents 12aaf4a2486b
children f7b43e5c42b9
line diff
     1.1 --- a/tools/libxc/xenctrl.h	Fri Jul 14 10:31:36 2006 +0100
     1.2 +++ b/tools/libxc/xenctrl.h	Fri Jul 14 10:37:12 2006 +0100
     1.3 @@ -47,6 +47,11 @@
     1.4  #define mb()
     1.5  #define rmb()
     1.6  #define wmb()
     1.7 +#elif defined(__powerpc__)
     1.8 +/* XXX loosen these up later */
     1.9 +#define mb()   __asm__ __volatile__ ("sync" : : : "memory")
    1.10 +#define rmb()  __asm__ __volatile__ ("sync" : : : "memory") /* lwsync? */
    1.11 +#define wmb()  __asm__ __volatile__ ("sync" : : : "memory") /* eieio? */
    1.12  #else
    1.13  #error "Define barriers"
    1.14  #endif