WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [linux-ppc-2.6] [XEN][POWERPC] Make sure that Xen Linux code ca

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [linux-ppc-2.6] [XEN][POWERPC] Make sure that Xen Linux code can run if Xen is not present
From: Xen patchbot-linux-ppc-2.6 <patchbot-linux-ppc-2.6@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 24 Oct 2006 15:32:27 +0000
Delivery-date: Tue, 24 Oct 2006 08:34:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=