Use the same policy for rejecting / not-reject ACPI tables with incorrect

checksums as the base acpi(4) driver.  This fixes a problem where the MADT
parser would reject the MADT table during early boot causing the MP Table
to be, but then the acpi(4) driver would attach and use non-SMP interrupt
routing.

Tested by:	Alastair Hogge  agh of coolrhaug com
MFC after:	1 week
This commit is contained in:
John Baldwin 2010-03-19 12:43:18 +00:00
parent 5743a283c2
commit 42c93b8d31
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205332
2 changed files with 4 additions and 0 deletions

View file

@ -627,8 +627,10 @@ map_table(vm_paddr_t pa, int offset, const char *sig)
if (ACPI_FAILURE(AcpiTbChecksum(table, length))) {
if (bootverbose)
printf("ACPI: Failed checksum for table %s\n", sig);
#if (ACPI_CHECKSUM_ABORT)
table_unmap(table, length);
return (NULL);
#endif
}
return (table);
}

View file

@ -641,8 +641,10 @@ map_table(vm_paddr_t pa, int offset, const char *sig)
if (ACPI_FAILURE(AcpiTbChecksum(table, length))) {
if (bootverbose)
printf("ACPI: Failed checksum for table %s\n", sig);
#if (ACPI_CHECKSUM_ABORT)
table_unmap(table, length);
return (NULL);
#endif
}
return (table);
}