mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
bitkeeper revision 1.1236.1.44 (4224f156AyEV3oV5JinuYtfS9e_ITA)
Rationalise memory-barrier definitions in user-space tools. Signed-off-by: Jerone Young <jyoung5@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
573027638d
commit
072f03be95
4 files changed
+22
-37
No files matched your search
@@ -49,14 +49,6 @@
|
||||
/* Size of a machine page frame. */
|
||||
#define PAGE_SIZE 4096
|
||||
|
||||
#if defined(__i386__)
|
||||
#define rmb() __asm__ __volatile__ ( "lock; addl $0,0(%%esp)" : : : "memory" )
|
||||
#define wmb() __asm__ __volatile__ ( "" : : : "memory" )
|
||||
#else
|
||||
#error "Define barriers"
|
||||
#endif
|
||||
|
||||
|
||||
/* Set the close-on-exec flag on a file descriptor. Doesn't currently bother
|
||||
* to check for errors. */
|
||||
/*
|
||||
|
||||