aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/system.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-09-12 15:42:39 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-09-12 15:42:39 +0100
commitf8fc0c5815e7f6b84092a9cf1f5b3c9e99322dd2 (patch)
treec7b5ec9ad0fcf965ea4ec7a1ae056e622df9ad14 /xen/include/asm-x86/system.h
parent62916af3ba5007e0a883b735a0d89a87b65170a6 (diff)
downloadxen-f8fc0c5815e7f6b84092a9cf1f5b3c9e99322dd2.tar.gz
xen-f8fc0c5815e7f6b84092a9cf1f5b3c9e99322dd2.tar.bz2
xen-f8fc0c5815e7f6b84092a9cf1f5b3c9e99322dd2.zip
Generic and VT-d specific Xen header changes for PCI passthru.
Signed-off-by: Allen Kay <allen.m.kay@intel.com> Signed-off-by: Guy Zana <guy@neocleus.com>
Diffstat (limited to 'xen/include/asm-x86/system.h')
-rw-r--r--xen/include/asm-x86/system.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/asm-x86/system.h b/xen/include/asm-x86/system.h
index 44a2af5813..2241795552 100644
--- a/xen/include/asm-x86/system.h
+++ b/xen/include/asm-x86/system.h
@@ -14,6 +14,9 @@
#define wbinvd() \
__asm__ __volatile__ ("wbinvd": : :"memory");
+#define clflush(a) \
+ __asm__ __volatile__ ("clflush (%0)": :"r"(a));
+
#define nop() __asm__ __volatile__ ("nop")
#define xchg(ptr,v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v),(ptr),sizeof(*(ptr))))