ia64/xen-unstable

changeset 9753:3575cd80ba8c

[IA64] message of elf_sanity_check as x86

This small patch output message of elf_sanity_check as x86.
Currently this panic is the only following message.

(XEN) *** LOADING DOMAIN 0 ***
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Could not set up DOM0 guest OS
(XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...
(XEN) machine_restart called: spinning....

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
author awilliam@ldap.hp.com
date Tue Apr 25 10:49:33 2006 -0700 (2006-04-25)
parents de0c04ed4ab7
children 5ee12273119c
files xen/arch/ia64/xen/domain.c
line diff
     1.1 --- a/xen/arch/ia64/xen/domain.c	Fri Apr 21 10:40:17 2006 -0600
     1.2 +++ b/xen/arch/ia64/xen/domain.c	Tue Apr 25 10:49:33 2006 -0700
     1.3 @@ -751,7 +751,12 @@ unsigned long domain_mpa_to_imva(struct 
     1.4  // see arch/x86/xxx/domain_build.c
     1.5  int elf_sanity_check(Elf_Ehdr *ehdr)
     1.6  {
     1.7 -	return (IS_ELF(*ehdr));
     1.8 +	if (!(IS_ELF(*ehdr)))
     1.9 +	{
    1.10 +		printk("DOM0 image is not a Xen-compatible Elf image.\n");
    1.11 +		return 0;
    1.12 +	}
    1.13 +	return 1;
    1.14  }
    1.15  
    1.16  static void copy_memory(void *dst, void *src, int size)