aboutsummaryrefslogtreecommitdiff
path: root/cpu-common.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-07-29 09:42:12 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-07-29 09:42:12 -0500
commit3046c984049070ab5843da1753ce3a22e25b52cd (patch)
treeeb706dd61603bbce9d669fb2f35bd06688cdf396 /cpu-common.h
parente374560232776d4141866abc9f520c132b394926 (diff)
parent679f4f8b178e7c66fbc2f39c905374ee8663d5d8 (diff)
Merge remote-tracking branch 'agraf/xen-next' into staging
Diffstat (limited to 'cpu-common.h')
-rw-r--r--cpu-common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpu-common.h b/cpu-common.h
index 16c9f4f487..c9878ba474 100644
--- a/cpu-common.h
+++ b/cpu-common.h
@@ -23,7 +23,15 @@ enum device_endian {
};
/* address in the RAM (different from a physical address) */
+#if defined(CONFIG_XEN_BACKEND) && TARGET_PHYS_ADDR_BITS == 64
+typedef uint64_t ram_addr_t;
+# define RAM_ADDR_MAX UINT64_MAX
+# define RAM_ADDR_FMT "%" PRIx64
+#else
typedef unsigned long ram_addr_t;
+# define RAM_ADDR_MAX ULONG_MAX
+# define RAM_ADDR_FMT "%lx"
+#endif
/* memory API */