summaryrefslogtreecommitdiffstats
path: root/spice/qxl_dev.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-01-28 14:44:47 +0100
committerAlexander Larsson <alexl@redhat.com>2010-02-04 16:43:24 +0100
commit9032d5235bac4fc9b5deb04ed924adb5125caefd (patch)
treefe98d49d357a1946872e9b8564a58217c7bfcb2d /spice/qxl_dev.h
parent590e21bc572cfec3d807c41c80425b75ca9ac451 (diff)
downloadspice-protocol-9032d5235bac4fc9b5deb04ed924adb5125caefd.tar.gz
spice-protocol-9032d5235bac4fc9b5deb04ed924adb5125caefd.tar.xz
spice-protocol-9032d5235bac4fc9b5deb04ed924adb5125caefd.zip
Use <spice/barrier.h> memory barrier
Diffstat (limited to 'spice/qxl_dev.h')
-rw-r--r--spice/qxl_dev.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h
index 229524e..7a226ce 100644
--- a/spice/qxl_dev.h
+++ b/spice/qxl_dev.h
@@ -33,21 +33,11 @@
#define _H_QXL_DEV
#include <spice/types.h>
+#include <spice/barrier.h>
#include "ipc_ring.h"
#include "draw.h"
-#ifdef __GNUC__
-#ifdef __i386__
-#define mb() __asm__ __volatile__ ("lock; addl $0,0(%%esp)": : :"memory")
-#else
-//mfence
-#define mb() __asm__ __volatile__ ("lock; addl $0,0(%%rsp)": : :"memory")
-#endif
-#else
-#define mb() __asm {lock add [esp], 0}
-#endif
-
#include <spice/start-packed.h>
#define REDHAT_PCI_VENDOR_ID 0x1b36