diff options
Diffstat (limited to 'com32/gpllib/acpi/acpi.c')
-rw-r--r-- | com32/gpllib/acpi/acpi.c | 11 |
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; } |