ia64/xen-unstable

changeset 17942:00721ef8d8ef

[IA64] fix serial console detection issue caused by cfbc535ebf6f

This patch fixes serial console detection failure caused by the
changeset cfbc535ebf6f.
The changeset changed struct efi's members value from xen virtual
address to physical address and from NULL to EFI_INVALID_TABLE_ADDR
for non existing table. One check was missed.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jul 07 10:54:16 2008 +0900 (2008-07-07)
parents ac8bc814faba
children eb0fc71cfc72
files xen/arch/ia64/linux-xen/setup.c
line diff
     1.1 --- a/xen/arch/ia64/linux-xen/setup.c	Wed Jul 02 18:28:28 2008 +0900
     1.2 +++ b/xen/arch/ia64/linux-xen/setup.c	Mon Jul 07 10:54:16 2008 +0900
     1.3 @@ -362,7 +362,7 @@ acpi_oem_console_setup(void)
     1.4  	int i;
     1.5  
     1.6  	/* Don't duplicate setup if an HCDP table is present */
     1.7 -	if (efi.hcdp)
     1.8 +	if (efi.hcdp != EFI_INVALID_TABLE_ADDR)
     1.9  		return -ENODEV;
    1.10  
    1.11  	/* Manually walk firmware provided tables to get to the XSDT.  */