summaryrefslogtreecommitdiff
path: root/src/mainboard/amd/dinar
diff options
context:
space:
mode:
authorzbao <fishbaozi@gmail.com>2012-04-13 13:48:50 +0800
committerMarc Jones <marcj303@gmail.com>2012-04-19 04:53:32 +0200
commit2132005b2041b24136c09220b73a7cef698b22b2 (patch)
tree9f6665a0816678a4fccbfb5813ccf72cda7a823d /src/mainboard/amd/dinar
parent585a4006976e903599b7128200a29b5729777818 (diff)
downloadcoreboot-2132005b2041b24136c09220b73a7cef698b22b2.tar.xz
Fix messy code in ALIB creation
Fix the copy-paste typo in ALIB table creation. ssdt is useless here. Change-Id: I250066eb5f755275f75c37789ce8760de35b046b Signed-off-by: Zheng Bao <zheng.bao@amd.com> Signed-off-by: zbao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/885 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marcj303@gmail.com>
Diffstat (limited to 'src/mainboard/amd/dinar')
-rw-r--r--src/mainboard/amd/dinar/acpi_tables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/amd/dinar/acpi_tables.c b/src/mainboard/amd/dinar/acpi_tables.c
index 0ec66ce57e..db01d79f52 100644
--- a/src/mainboard/amd/dinar/acpi_tables.c
+++ b/src/mainboard/amd/dinar/acpi_tables.c
@@ -290,9 +290,9 @@ unsigned long write_acpi_tables(unsigned long start)
alib = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_ALIB);
if (alib != NULL) {
memcpy((void *)current, alib, alib->length);
- ssdt = (acpi_header_t *) current;
+ alib = (acpi_header_t *) current;
current += alib->length;
- acpi_add_table(rsdp,alib);
+ acpi_add_table(rsdp, (void *)alib);
} else {
printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n");
}