aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-01-31 22:14:16 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-01-31 22:14:16 +0100
commitc6e2eb83837b33c226119f971bee949396356701 (patch)
tree7147bca8a3ac213cf6227a9d1f9e300f369eb0e2 /com32/gpllib
parent09bfdcd4f24440b0a6ec85c64d929214c98bc148 (diff)
downloadsyslinux-c6e2eb83837b33c226119f971bee949396356701.tar.gz
syslinux-c6e2eb83837b33c226119f971bee949396356701.tar.xz
syslinux-c6e2eb83837b33c226119f971bee949396356701.zip
ACPI: Adding MCFG support
Diffstat (limited to 'com32/gpllib')
-rw-r--r--com32/gpllib/acpi/acpi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/com32/gpllib/acpi/acpi.c b/com32/gpllib/acpi/acpi.c
index ba532396..55c6d1a1 100644
--- a/com32/gpllib/acpi/acpi.c
+++ b/com32/gpllib/acpi/acpi.c
@@ -214,6 +214,13 @@ bool parse_header(uint64_t *address, s_acpi *acpi) {
t->valid = true;
t->address = address;
memcpy(&t->header, &adh, sizeof(adh));
+ } else if (memcmp(adh.signature, MCFG, sizeof(MCFG) - 1) == 0) {
+ DEBUG_PRINT(("MCFG table found\n"));
+ s_mcfg *m = &acpi->mcfg;
+ /* This structure is valid, let's fill it */
+ m->valid = true;
+ m->address = address;
+ memcpy(&m->header, &adh, sizeof(adh));
}