aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/compat.h
diff options
context:
space:
mode:
authorEmmanuel Ackaouy <ack@xensource.com>2007-01-05 17:34:29 +0000
committerEmmanuel Ackaouy <ack@xensource.com>2007-01-05 17:34:29 +0000
commitfa5b1a1d19aed783a5461e4ea9c0bd6a23f9d863 (patch)
treeb30f57e0f20a6a5b52e621ed967a0d9004a74d5d /xen/include/xen/compat.h
parent8589463a257a56c0316b002b7d8affc5709e4672 (diff)
downloadxen-fa5b1a1d19aed783a5461e4ea9c0bd6a23f9d863.tar.gz
xen-fa5b1a1d19aed783a5461e4ea9c0bd6a23f9d863.tar.bz2
xen-fa5b1a1d19aed783a5461e4ea9c0bd6a23f9d863.zip
Handle shared info (having different layout for native and compatibility
mode guests) accesses. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/include/xen/compat.h')
-rw-r--r--xen/include/xen/compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/include/xen/compat.h b/xen/include/xen/compat.h
index 375ba39352..48d3b68898 100644
--- a/xen/include/xen/compat.h
+++ b/xen/include/xen/compat.h
@@ -162,6 +162,12 @@ extern int compat_disabled;
struct start_info;
void xlat_start_info(struct start_info *, enum XLAT_start_info_console);
+#define BITS_PER_GUEST_LONG(d) (!IS_COMPAT(d) ? BITS_PER_LONG : COMPAT_BITS_PER_LONG)
+
+#else
+
+#define BITS_PER_GUEST_LONG(d) BITS_PER_LONG
+
#endif
#endif /* __XEN_COMPAT_H__ */