Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25619
b: refs/heads/master
c: 0fcd270
h: refs/heads/master
i:
  25617: ea96fd3
  25615: fe86f0f
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Apr 11, 2006
1 parent 1f8e5c4 commit 6ffa75c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 88dd9c16cecbd105bbe7711b6120333f6f7b5474
refs/heads/master: 0fcd270901f731342df64816f277ae7adbd67130
5 changes: 4 additions & 1 deletion trunk/arch/i386/kernel/acpi/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ int __init acpi_parse_mcfg(unsigned long phys_addr, unsigned long size)
unsigned long i;
int config_size;

if (!phys_addr || !size)
if (!phys_addr || !size || !cpu_has_apic)
return -EINVAL;

mcfg = (struct acpi_table_mcfg *)__acpi_map_table(phys_addr, size);
Expand Down Expand Up @@ -693,6 +693,9 @@ static int __init acpi_parse_madt_lapic_entries(void)
{
int count;

if (!cpu_has_apic)
return -ENODEV;

/*
* 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).
Expand Down

0 comments on commit 6ffa75c

Please sign in to comment.