aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-01-31 21:24:07 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-01-31 21:24:07 +0100
commit7c9a76021519d03f2c6816692b25985509192ddf (patch)
treebccf29aaeedb2ab978c3ddfb6bd2d9b6f238c2ad /com32/gpllib
parent52ffd694910222ecde123140dac3b04cabe15f56 (diff)
downloadsyslinux-7c9a76021519d03f2c6816692b25985509192ddf.tar.gz
syslinux-7c9a76021519d03f2c6816692b25985509192ddf.tar.xz
syslinux-7c9a76021519d03f2c6816692b25985509192ddf.zip
ACPI: Adding HPET 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 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;
}