aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-01-31 22:28:45 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-01-31 22:28:45 +0100
commitd27025ba52145c1b4119a8d5920137ffb35bc5f4 (patch)
tree3d6d5ca4d4a11f070a925de4470800f50726158c /com32/gpllib
parentb60ffd9cf1ce6ec3ebab01764d8f8e82aa4edd9e (diff)
downloadsyslinux-d27025ba52145c1b4119a8d5920137ffb35bc5f4.tar.gz
syslinux-d27025ba52145c1b4119a8d5920137ffb35bc5f4.tar.xz
syslinux-d27025ba52145c1b4119a8d5920137ffb35bc5f4.zip
ACPI: Adding BOOT support
Diffstat (limited to 'com32/gpllib')
-rw-r--r--com32/gpllib/acpi/acpi.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/com32/gpllib/acpi/acpi.c b/com32/gpllib/acpi/acpi.c
index 7670d163..8e5ee29c 100644
--- a/com32/gpllib/acpi/acpi.c
+++ b/com32/gpllib/acpi/acpi.c
@@ -228,9 +228,14 @@ bool parse_header(uint64_t *address, s_acpi *acpi) {
s->valid = true;
s->address = address;
memcpy(&s->header, &adh, sizeof(adh));
+ } else if (memcmp(adh.signature, BOOT, sizeof(BOOT) - 1) == 0) {
+ DEBUG_PRINT(("BOOT table found\n"));
+ s_boot *b = &acpi->boot;
+ /* This structure is valid, let's fill it */
+ b->valid = true;
+ b->address = address;
+ memcpy(&b->header, &adh, sizeof(adh));
}
-
-
-
+
return true;
}