summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/amd/dinar/acpi_tables.c4
-rw-r--r--src/mainboard/amd/inagua/acpi_tables.c7
-rw-r--r--src/mainboard/amd/persimmon/acpi_tables.c7
-rw-r--r--src/mainboard/amd/south_station/acpi_tables.c7
-rw-r--r--src/mainboard/amd/union_station/acpi_tables.c7
-rw-r--r--src/mainboard/asrock/e350m1/acpi_tables.c7
-rw-r--r--src/mainboard/supermicro/h8qgi/acpi_tables.c4
7 files changed, 19 insertions, 24 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");
}
diff --git a/src/mainboard/amd/inagua/acpi_tables.c b/src/mainboard/amd/inagua/acpi_tables.c
index ff3b7dbf5d..a4504d4d64 100644
--- a/src/mainboard/amd/inagua/acpi_tables.c
+++ b/src/mainboard/amd/inagua/acpi_tables.c
@@ -256,11 +256,10 @@ 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);
- }
- else {
+ acpi_add_table(rsdp, (void *)alib);
+ } else {
printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n");
}
diff --git a/src/mainboard/amd/persimmon/acpi_tables.c b/src/mainboard/amd/persimmon/acpi_tables.c
index 4a44a5abe5..cb415fdfe9 100644
--- a/src/mainboard/amd/persimmon/acpi_tables.c
+++ b/src/mainboard/amd/persimmon/acpi_tables.c
@@ -256,11 +256,10 @@ 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);
- }
- else {
+ acpi_add_table(rsdp, (void *)alib);
+ } else {
printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n");
}
diff --git a/src/mainboard/amd/south_station/acpi_tables.c b/src/mainboard/amd/south_station/acpi_tables.c
index e32a42bbd7..5c958a0ec0 100644
--- a/src/mainboard/amd/south_station/acpi_tables.c
+++ b/src/mainboard/amd/south_station/acpi_tables.c
@@ -256,11 +256,10 @@ 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);
- }
- else {
+ acpi_add_table(rsdp, (void *)alib);
+ } else {
printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n");
}
diff --git a/src/mainboard/amd/union_station/acpi_tables.c b/src/mainboard/amd/union_station/acpi_tables.c
index e32a42bbd7..5c958a0ec0 100644
--- a/src/mainboard/amd/union_station/acpi_tables.c
+++ b/src/mainboard/amd/union_station/acpi_tables.c
@@ -256,11 +256,10 @@ 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);
- }
- else {
+ acpi_add_table(rsdp, (void *)alib);
+ } else {
printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n");
}
diff --git a/src/mainboard/asrock/e350m1/acpi_tables.c b/src/mainboard/asrock/e350m1/acpi_tables.c
index e32a42bbd7..5c958a0ec0 100644
--- a/src/mainboard/asrock/e350m1/acpi_tables.c
+++ b/src/mainboard/asrock/e350m1/acpi_tables.c
@@ -256,11 +256,10 @@ 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);
- }
- else {
+ acpi_add_table(rsdp, (void *)alib);
+ } else {
printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n");
}
diff --git a/src/mainboard/supermicro/h8qgi/acpi_tables.c b/src/mainboard/supermicro/h8qgi/acpi_tables.c
index 77c0772c22..f6db214581 100644
--- a/src/mainboard/supermicro/h8qgi/acpi_tables.c
+++ b/src/mainboard/supermicro/h8qgi/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");
}