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>
This commit is contained in:
zbao 2012-04-13 13:48:50 +08:00 committed by Marc Jones
parent 585a400697
commit 2132005b20
7 changed files with 19 additions and 24 deletions

View File

@ -290,9 +290,9 @@ unsigned long write_acpi_tables(unsigned long start)
alib = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_ALIB); alib = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_ALIB);
if (alib != NULL) { if (alib != NULL) {
memcpy((void *)current, alib, alib->length); memcpy((void *)current, alib, alib->length);
ssdt = (acpi_header_t *) current; alib = (acpi_header_t *) current;
current += alib->length; current += alib->length;
acpi_add_table(rsdp,alib); acpi_add_table(rsdp, (void *)alib);
} else { } else {
printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n"); printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n");
} }

View File

@ -256,11 +256,10 @@ unsigned long write_acpi_tables(unsigned long start)
alib = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_ALIB); alib = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_ALIB);
if (alib != NULL) { if (alib != NULL) {
memcpy((void *)current, alib, alib->length); memcpy((void *)current, alib, alib->length);
ssdt = (acpi_header_t *) current; alib = (acpi_header_t *) current;
current += alib->length; current += alib->length;
acpi_add_table(rsdp,alib); acpi_add_table(rsdp, (void *)alib);
} } else {
else {
printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n"); printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n");
} }

View File

@ -256,11 +256,10 @@ unsigned long write_acpi_tables(unsigned long start)
alib = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_ALIB); alib = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_ALIB);
if (alib != NULL) { if (alib != NULL) {
memcpy((void *)current, alib, alib->length); memcpy((void *)current, alib, alib->length);
ssdt = (acpi_header_t *) current; alib = (acpi_header_t *) current;
current += alib->length; current += alib->length;
acpi_add_table(rsdp,alib); acpi_add_table(rsdp, (void *)alib);
} } else {
else {
printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n"); printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n");
} }

View File

@ -256,11 +256,10 @@ unsigned long write_acpi_tables(unsigned long start)
alib = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_ALIB); alib = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_ALIB);
if (alib != NULL) { if (alib != NULL) {
memcpy((void *)current, alib, alib->length); memcpy((void *)current, alib, alib->length);
ssdt = (acpi_header_t *) current; alib = (acpi_header_t *) current;
current += alib->length; current += alib->length;
acpi_add_table(rsdp,alib); acpi_add_table(rsdp, (void *)alib);
} } else {
else {
printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n"); printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n");
} }

View File

@ -256,11 +256,10 @@ unsigned long write_acpi_tables(unsigned long start)
alib = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_ALIB); alib = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_ALIB);
if (alib != NULL) { if (alib != NULL) {
memcpy((void *)current, alib, alib->length); memcpy((void *)current, alib, alib->length);
ssdt = (acpi_header_t *) current; alib = (acpi_header_t *) current;
current += alib->length; current += alib->length;
acpi_add_table(rsdp,alib); acpi_add_table(rsdp, (void *)alib);
} } else {
else {
printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n"); printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n");
} }

View File

@ -256,11 +256,10 @@ unsigned long write_acpi_tables(unsigned long start)
alib = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_ALIB); alib = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_ALIB);
if (alib != NULL) { if (alib != NULL) {
memcpy((void *)current, alib, alib->length); memcpy((void *)current, alib, alib->length);
ssdt = (acpi_header_t *) current; alib = (acpi_header_t *) current;
current += alib->length; current += alib->length;
acpi_add_table(rsdp,alib); acpi_add_table(rsdp, (void *)alib);
} } else {
else {
printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n"); printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n");
} }

View File

@ -290,9 +290,9 @@ unsigned long write_acpi_tables(unsigned long start)
alib = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_ALIB); alib = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_ALIB);
if (alib != NULL) { if (alib != NULL) {
memcpy((void *)current, alib, alib->length); memcpy((void *)current, alib, alib->length);
ssdt = (acpi_header_t *) current; alib = (acpi_header_t *) current;
current += alib->length; current += alib->length;
acpi_add_table(rsdp,alib); acpi_add_table(rsdp, (void *)alib);
} else { } else {
printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n"); printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n");
} }