Commit 3b4724b0 authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge Committed by Ingo Molnar

xen: use phys_addr_t when referring to physical addresses

Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 947a69c9
...@@ -8,27 +8,15 @@ ...@@ -8,27 +8,15 @@
#include <xen/features.h> #include <xen/features.h>
#ifdef CONFIG_X86_PAE
/* Xen machine address */ /* Xen machine address */
typedef struct xmaddr { typedef struct xmaddr {
unsigned long long maddr; phys_addr_t maddr;
} xmaddr_t; } xmaddr_t;
/* Xen pseudo-physical address */ /* Xen pseudo-physical address */
typedef struct xpaddr { typedef struct xpaddr {
unsigned long long paddr; phys_addr_t paddr;
} xpaddr_t; } xpaddr_t;
#else
/* Xen machine address */
typedef struct xmaddr {
unsigned long maddr;
} xmaddr_t;
/* Xen pseudo-physical address */
typedef struct xpaddr {
unsigned long paddr;
} xpaddr_t;
#endif
#define XMADDR(x) ((xmaddr_t) { .maddr = (x) }) #define XMADDR(x) ((xmaddr_t) { .maddr = (x) })
#define XPADDR(x) ((xpaddr_t) { .paddr = (x) }) #define XPADDR(x) ((xpaddr_t) { .paddr = (x) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment