efi/ia64: Move HCDP and MPS table handling into IA64 arch code
The HCDP and MPS tables are Itanium specific EFI config tables, so move their handling to ia64 arch code. Tested-by: Tony Luck <tony.luck@intel.com> # arch/ia64 Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
@@ -80,6 +80,8 @@ setup_vga_console(struct pcdp_device *dev)
|
||||
#endif
|
||||
}
|
||||
|
||||
extern unsigned long hcdp_phys;
|
||||
|
||||
int __init
|
||||
efi_setup_pcdp_console(char *cmdline)
|
||||
{
|
||||
@@ -89,11 +91,11 @@ efi_setup_pcdp_console(char *cmdline)
|
||||
int i, serial = 0;
|
||||
int rc = -ENODEV;
|
||||
|
||||
if (efi.hcdp == EFI_INVALID_TABLE_ADDR)
|
||||
if (hcdp_phys == EFI_INVALID_TABLE_ADDR)
|
||||
return -ENODEV;
|
||||
|
||||
pcdp = early_memremap(efi.hcdp, 4096);
|
||||
printk(KERN_INFO "PCDP: v%d at 0x%lx\n", pcdp->rev, efi.hcdp);
|
||||
pcdp = early_memremap(hcdp_phys, 4096);
|
||||
printk(KERN_INFO "PCDP: v%d at 0x%lx\n", pcdp->rev, hcdp_phys);
|
||||
|
||||
if (strstr(cmdline, "console=hcdp")) {
|
||||
if (pcdp->rev < 3)
|
||||
|
Reference in New Issue
Block a user