diff options
Diffstat (limited to 'com32/gpllib/acpi/acpi.c')
-rw-r--r-- | com32/gpllib/acpi/acpi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/com32/gpllib/acpi/acpi.c b/com32/gpllib/acpi/acpi.c index b763e0ba..68af84af 100644 --- a/com32/gpllib/acpi/acpi.c +++ b/com32/gpllib/acpi/acpi.c @@ -200,6 +200,14 @@ bool parse_header(uint64_t *address, s_acpi *acpi) { e->address = address; memcpy(&e->header, &adh, sizeof(adh)); parse_ecdt(e); + } else if (memcmp(adh.signature, HPET, sizeof(HPET) - 1) == 0) { + DEBUG_PRINT(("HPET table found\n")); + s_hpet *h = &acpi->hpet; + /* This structure is valid, let's fill it */ + h->valid = true; + h->address = address; + memcpy(&h->header, &adh, sizeof(adh)); } + return true; } |