|
|
|
|
|
|
|
|
|
|
xen-ppc-devel
[XenPPC] [pushed] [ppc] sync this shared header with header in Xen
changeset: 27800:257c44c865e917f285499125c2ca62c199312172
user: jimix@xxxxxxxxxxxxxxxxxxxxx
date: Thu May 11 15:39:37 2006 -0400
files: include/xen/interface/arch-ppc64.h
description:
[ppc] sync this shared header with header in Xen
diff -r 01213b903e6fd427667898177da2c9d8a1f5e9f7 -r
257c44c865e917f285499125c2ca62c199312172 include/xen/interface/arch-ppc64.h
--- a/include/xen/interface/arch-ppc64.h Wed May 10 15:35:53 2006 -0400
+++ b/include/xen/interface/arch-ppc64.h Thu May 11 15:39:37 2006 -0400
@@ -20,18 +20,20 @@
#ifndef __XEN_PUBLIC_ARCH_PPC_64_H__
#define __XEN_PUBLIC_ARCH_PPC_64_H__
+#if !(defined(__XEN__) || defined(__XEN_TOOLS__))
+/* not sure how this is supposed to get asserted */
#define __XEN_INTERFACE_VERSION__ 0x00030202
+#endif
-#ifdef __XEN__
#define __DEFINE_XEN_GUEST_HANDLE(name, type) \
typedef struct { type *p; } __guest_handle_ ## name
-#else
-#define __DEFINE_XEN_GUEST_HANDLE(name, type) \
- typedef type * __guest_handle_ ## name
-#endif
#define DEFINE_XEN_GUEST_HANDLE(name) __DEFINE_XEN_GUEST_HANDLE(name, name)
#define XEN_GUEST_HANDLE(name) __guest_handle_ ## name
+#define set_xen_guest_handle(hnd, val) do { (hnd).p = val; } while (0)
+#ifdef __XEN_TOOLS__
+#define get_xen_guest_handle(val, hnd) do { val = (hnd).p; } while (0)
+#endif
#ifndef __ASSEMBLY__
/* Guest handles for primitive C types. */
@@ -73,10 +75,10 @@ typedef struct cpu_user_regs
uint64_t srr1;
uint64_t pc;
uint64_t msr;
- uint32_t fpscr;
+ uint64_t fpscr;
+ uint64_t xer;
uint32_t cr;
- uint32_t xer;
- uint32_t _pad;
+ uint32_t entry_vector;
} cpu_user_regs_t;
typedef uint64_t tsc_timestamp_t; /* RDTSC timestamp */ /* XXX timebase */
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [XenPPC] [pushed] [ppc] sync this shared header with header in Xen,
jimix <=
|
|
|
|
|