|
@@ -168,7 +168,7 @@ int __init acpi_parse_mcfg(unsigned long phys_addr, unsigned long size)
|
|
unsigned long i;
|
|
unsigned long i;
|
|
int config_size;
|
|
int config_size;
|
|
|
|
|
|
- if (!phys_addr || !size)
|
|
|
|
|
|
+ if (!phys_addr || !size || !cpu_has_apic)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
mcfg = (struct acpi_table_mcfg *)__acpi_map_table(phys_addr, size);
|
|
mcfg = (struct acpi_table_mcfg *)__acpi_map_table(phys_addr, size);
|
|
@@ -693,6 +693,9 @@ static int __init acpi_parse_madt_lapic_entries(void)
|
|
{
|
|
{
|
|
int count;
|
|
int count;
|
|
|
|
|
|
|
|
+ if (!cpu_has_apic)
|
|
|
|
+ return -ENODEV;
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Note that the LAPIC address is obtained from the MADT (32-bit value)
|
|
* Note that the LAPIC address is obtained from the MADT (32-bit value)
|
|
* and (optionally) overriden by a LAPIC_ADDR_OVR entry (64-bit value).
|
|
* and (optionally) overriden by a LAPIC_ADDR_OVR entry (64-bit value).
|