[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] compilation fix when crash_debug=y.
# HG changeset patch # User awilliam@xxxxxxxxxxx # Node ID 37a8dbe24201b0e81e89d652aabf3f8f1952bfeb # Parent fa4281cb7a5b27790d4ff0d2692f9055378b1694 [IA64] compilation fix when crash_debug=y. Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx> --- xen/include/asm-ia64/linux-xen/asm/atomic.h | 5 +++++ 1 files changed, 5 insertions(+) diff -r fa4281cb7a5b -r 37a8dbe24201 xen/include/asm-ia64/linux-xen/asm/atomic.h --- a/xen/include/asm-ia64/linux-xen/asm/atomic.h Tue Oct 31 22:25:12 2006 -0700 +++ b/xen/include/asm-ia64/linux-xen/asm/atomic.h Tue Oct 31 22:25:17 2006 -0700 @@ -23,8 +23,13 @@ typedef struct { volatile __s32 counter; typedef struct { volatile __s32 counter; } atomic_t; typedef struct { volatile __s64 counter; } atomic64_t; +#ifndef XEN #define ATOMIC_INIT(i) ((atomic_t) { (i) }) #define ATOMIC64_INIT(i) ((atomic64_t) { (i) }) +#else +#define ATOMIC_INIT(i) { (i) } +#define ATOMIC64_INIT(i) { (i) } +#endif #define atomic_read(v) ((v)->counter) #define atomic64_read(v) ((v)->counter) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |