aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-01-31 22:21:05 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-01-31 22:21:05 +0100
commit34c4821049e15b4c2402e908ec4a60f449974ef0 (patch)
tree93fb8166f4156fc0af42ad8e04fb85bc71b456ce /com32/gpllib
parentdb3b0b8379613fdd32f791000d173e5411775291 (diff)
downloadsyslinux-34c4821049e15b4c2402e908ec4a60f449974ef0.tar.gz
syslinux-34c4821049e15b4c2402e908ec4a60f449974ef0.tar.xz
syslinux-34c4821049e15b4c2402e908ec4a60f449974ef0.zip
ACPI: Adding SLIC 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 55c6d1a1..7670d163 100644
--- a/com32/gpllib/acpi/acpi.c
+++ b/com32/gpllib/acpi/acpi.c
@@ -221,8 +221,16 @@ bool parse_header(uint64_t *address, s_acpi *acpi) {
m->valid = true;
m->address = address;
memcpy(&m->header, &adh, sizeof(adh));
+ } else if (memcmp(adh.signature, SLIC, sizeof(SLIC) - 1) == 0) {
+ DEBUG_PRINT(("SLIC table found\n"));
+ s_slic *s = &acpi->slic;
+ /* This structure is valid, let's fill it */
+ s->valid = true;
+ s->address = address;
+ memcpy(&s->header, &adh, sizeof(adh));
}
+
return true;
}