aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/system.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-12-21 13:58:51 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-12-21 13:58:51 +0000
commitf9396bbfe805c16944fec66ff0c6acdf87ba2ef2 (patch)
treec8a71a47d746009969a6d588529d28658626c9b2 /xen/include/asm-x86/system.h
parent015f6a2832c6304c9eccdbbe09ddb71efb2144d7 (diff)
downloadxen-f9396bbfe805c16944fec66ff0c6acdf87ba2ef2.tar.gz
xen-f9396bbfe805c16944fec66ff0c6acdf87ba2ef2.tar.bz2
xen-f9396bbfe805c16944fec66ff0c6acdf87ba2ef2.zip
Improve consistency of type-attribute usage (volatile/const).
From: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/system.h')
-rw-r--r--xen/include/asm-x86/system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/asm-x86/system.h b/xen/include/asm-x86/system.h
index 5166d3f656..cd297534d6 100644
--- a/xen/include/asm-x86/system.h
+++ b/xen/include/asm-x86/system.h
@@ -19,7 +19,7 @@
#define xchg(ptr,v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v),(ptr),sizeof(*(ptr))))
struct __xchg_dummy { unsigned long a[100]; };
-#define __xg(x) ((struct __xchg_dummy *)(x))
+#define __xg(x) ((volatile struct __xchg_dummy *)(x))
/*