[PATCH] lots of ACPI tables
DORMANTno replies
From: Matthew Wilcox <hidden>
Date: 2002-08-13 18:26:19
This patch written by Bjorn Helgaas supports more ACPI tables. Limiting the maximum number of tables to the number of different tables we recognise is clearly bogus -- some tables can appear more than once. And if we ignore some tables, the subtraction was backwards. diff -urpNX ../dontdiff acpi/linux-acpi0726/drivers/acpi/tables.c linux-acpi/drivers/acpi/tables.c
--- acpi/linux-acpi0726/drivers/acpi/tables.c Mon Aug 12 19:43:52 2002
+++ linux-acpi/drivers/acpi/tables.c Mon Aug 12 19:49:54 2002@@ -36,7 +36,7 @@ #define PREFIX "ACPI: " -#define ACPI_MAX_TABLES ACPI_TABLE_COUNT +#define ACPI_MAX_TABLES 256 static char *acpi_table_signatures[ACPI_TABLE_COUNT] = { [ACPI_TABLE_UNKNOWN] = "????",
@@ -338,7 +338,7 @@ acpi_table_get_sdt ( sdt.count = (header->length - sizeof(struct acpi_table_header)) >> 3; if (sdt.count > ACPI_MAX_TABLES) { printk(KERN_WARNING PREFIX "Truncated %lu XSDT entries\n", - (ACPI_MAX_TABLES - sdt.count)); + (sdt.count - ACPI_MAX_TABLES)); sdt.count = ACPI_MAX_TABLES; }
@@ -383,7 +383,7 @@ acpi_table_get_sdt ( sdt.count = (header->length - sizeof(struct acpi_table_header)) >> 2; if (sdt.count > ACPI_MAX_TABLES) { printk(KERN_WARNING PREFIX "Truncated %lu RSDT entries\n", - (ACPI_TABLE_COUNT - sdt.count)); + (sdt.count - ACPI_TABLE_COUNT)); sdt.count = ACPI_MAX_TABLES; }
--
Revolutions do not require corporate support.
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31