mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 01:34:09 +00:00
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:
parent
5743a283c2
commit
42c93b8d31
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205332
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue