[IA64] fix serial console detection issue caused by cfbc535ebf6f
authorIsaku Yamahata <yamahata@valinux.co.jp>
Mon, 7 Jul 2008 01:54:16 +0000 (10:54 +0900)
committerIsaku Yamahata <yamahata@valinux.co.jp>
Mon, 7 Jul 2008 01:54:16 +0000 (10:54 +0900)
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>
xen/arch/ia64/linux-xen/setup.c

index 32067f56d7f148ec3ce483d4dcf070d10ffb187d..822d5fb6800c5432993cdcaaa77ec145ad3eb9a7 100644 (file)
@@ -362,7 +362,7 @@ acpi_oem_console_setup(void)
        int i;
 
        /* Don't duplicate setup if an HCDP table is present */
-       if (efi.hcdp)
+       if (efi.hcdp != EFI_INVALID_TABLE_ADDR)
                return -ENODEV;
 
        /* Manually walk firmware provided tables to get to the XSDT.  */