aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-01-31 22:01:26 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-01-31 22:02:30 +0100
commitb55c988dcca34d43ffba87adb604925a91f20496 (patch)
tree3b40a714778622c6de7da88c2a584969b41a128c /com32/gpllib
parent19d91695375b21bba897b19ac6eadeba04dce047 (diff)
downloadsyslinux-b55c988dcca34d43ffba87adb604925a91f20496.tar.gz
syslinux-b55c988dcca34d43ffba87adb604925a91f20496.tar.xz
syslinux-b55c988dcca34d43ffba87adb604925a91f20496.zip
ACPI: Adding TCPA support
Diffstat (limited to 'com32/gpllib')
-rw-r--r--com32/gpllib/acpi/acpi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/com32/gpllib/acpi/acpi.c b/com32/gpllib/acpi/acpi.c
index 68af84af..ba532396 100644
--- a/com32/gpllib/acpi/acpi.c
+++ b/com32/gpllib/acpi/acpi.c
@@ -207,7 +207,15 @@ bool parse_header(uint64_t *address, s_acpi *acpi) {
h->valid = true;
h->address = address;
memcpy(&h->header, &adh, sizeof(adh));
+ } else if (memcmp(adh.signature, TCPA, sizeof(TCPA) - 1) == 0) {
+ DEBUG_PRINT(("TCPA table found\n"));
+ s_tcpa *t = &acpi->tcpa;
+ /* This structure is valid, let's fill it */
+ t->valid = true;
+ t->address = address;
+ memcpy(&t->header, &adh, sizeof(adh));
}
+
return true;
}