|
|
|
|
|
|
|
|
|
|
xen-ppc-devel
[XenPPC] [linux-ppc-2.6] [XEN][POWERPC] Make sure that Xen Linux code ca
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 4ab8b63fcff117bec150b9f6afd3ff292f51c1dd
# Parent 298b4a676daeecb543e6372fbb78a16e385378a5
[XEN][POWERPC] Make sure that Xen Linux code can run if Xen is not present
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Acked-by: Amos Waterland <apw@xxxxxxxxxx>
---
include/asm-powerpc/xen/asm/hypervisor.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -r 298b4a676dae -r 4ab8b63fcff1 include/asm-powerpc/xen/asm/hypervisor.h
--- a/include/asm-powerpc/xen/asm/hypervisor.h Tue Oct 24 06:34:37 2006 -0400
+++ b/include/asm-powerpc/xen/asm/hypervisor.h Tue Oct 24 11:24:33 2006 -0400
@@ -46,7 +46,8 @@ extern start_info_t *xen_start_info;
extern start_info_t *xen_start_info;
#ifdef CONFIG_XEN_PRIVILEGED_GUEST
-#define is_initial_xendomain() (!!(xen_start_info->flags & SIF_INITDOMAIN))
+#define is_initial_xendomain() (xen_start_info && \
+ (xen_start_info->flags & SIF_INITDOMAIN))
#else
#define is_initial_xendomain() 0
#endif
_______________________________________________
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] [linux-ppc-2.6] [XEN][POWERPC] Make sure that Xen Linux code can run if Xen is not present,
Xen patchbot-linux-ppc-2 . 6 <=
|
|
|
|
|