diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-03-22 11:50:52 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-03-22 11:50:52 +0000 |
commit | 53b0ea4bf24c0ae51aa9f8447d4ce9d44d46af72 (patch) | |
tree | 1434912235e0ea29b20b4276ffbfce4f45e12dd5 /src/mainboard/kontron/986lcd-m/acpi_tables.c | |
parent | c02b4fc9db3c3c1e263027382697b566127f66bb (diff) | |
download | coreboot-53b0ea4bf24c0ae51aa9f8447d4ce9d44d46af72.tar.xz |
drop some unused files and fix warnings on i945 based systems.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5267 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/kontron/986lcd-m/acpi_tables.c')
-rw-r--r-- | src/mainboard/kontron/986lcd-m/acpi_tables.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mainboard/kontron/986lcd-m/acpi_tables.c b/src/mainboard/kontron/986lcd-m/acpi_tables.c index afc4ad5fbe..bd8e932c44 100644 --- a/src/mainboard/kontron/986lcd-m/acpi_tables.c +++ b/src/mainboard/kontron/986lcd-m/acpi_tables.c @@ -30,6 +30,7 @@ #include "dmi.h" extern unsigned char AmlCode[]; +void *amlcodeptr = &AmlCode; #if CONFIG_HAVE_ACPI_SLIC unsigned long acpi_create_slic(unsigned long current); #endif @@ -203,10 +204,10 @@ unsigned long write_acpi_tables(unsigned long start) ALIGN_CURRENT; acpi_create_facs(facs); + int len = ((acpi_header_t *) amlcodeptr)->length; dsdt = (acpi_header_t *) current; - current += ((acpi_header_t *) AmlCode)->length; - memcpy((void *) dsdt, (void *) AmlCode, - ((acpi_header_t *) AmlCode)->length); + current += len; + memcpy((void *) dsdt, amlcodeptr, len); ALIGN_CURRENT; |