File acpica_fix_acpixtract of Package acpica
acpica: Revert commit baab09e6857a427944068c5e599ea2ffb84f765b
to fix dynamic SSDT table extract.
Signed-off-by: Thomas Renninger <trenn@suse.de>
Index: source/tools/acpixtract/acpixtract.c
===================================================================
--- source.orig/tools/acpixtract/acpixtract.c
+++ source/tools/acpixtract/acpixtract.c
@@ -122,11 +122,11 @@
/* Note: This is a 32-bit program only */
-#define VERSION 0x20110225
+#define VERSION 0x20100107
#define FIND_HEADER 0
#define EXTRACT_DATA 1
#define BUFFER_SIZE 256
-#define HEADER_LINE_LENGTH 17 /* strlen ("FACP @ 0x737e1000") */
+
/* Local prototypes */
@@ -577,13 +577,6 @@ ExtractTables (
{
case FIND_HEADER:
- /* Ignore lines that are too short to be header lines */
-
- if (strlen (Buffer) < HEADER_LINE_LENGTH)
- {
- continue;
- }
-
/* Ignore empty lines and lines that start with a space */
if ((Buffer[0] == ' ') ||
@@ -591,15 +584,6 @@ ExtractTables (
{
continue;
}
-
- /* Ignore lines that are not of the form "ABCD @ " */
-
- if ((Buffer[4] != ' ') ||
- (Buffer[5] != '@') ||
- (Buffer[6] != ' '))
- {
- continue;
- }
NormalizeSignature (Buffer);
strncpy (ThisSignature, Buffer, 4);