# HG changeset patch # User Jimi Xenidis <[EMAIL PROTECTED]> # 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 <[EMAIL PROTECTED]> Acked-by: Amos Waterland <[EMAIL PROTECTED]> --- 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@lists.xensource.com http://lists.xensource.com/xen-ppc-devel