summaryrefslogtreecommitdiff
path: root/src/mainboard/siemens
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2014-11-04 21:18:25 +0100
committerVladimir Serbinenko <phcoder@gmail.com>2014-11-22 16:58:29 +0100
commitf8457985d84caa25239ffc31d74f8d3d839541f3 (patch)
treeec4a7d3e61c19aabeb532a86457eee3e9743c6ef /src/mainboard/siemens
parenta09f4db396e18b26f48fb99a0b85fec4642236e6 (diff)
downloadcoreboot-f8457985d84caa25239ffc31d74f8d3d839541f3.tar.xz
amdk8: Move to implicit length patching
Change-Id: I8b4c36adaa7ea791ae1a8f7c0d059b9201b08f94 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/7332 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'src/mainboard/siemens')
-rw-r--r--src/mainboard/siemens/sitemp_g1p1/acpi_tables.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mainboard/siemens/sitemp_g1p1/acpi_tables.c b/src/mainboard/siemens/sitemp_g1p1/acpi_tables.c
index a9828833c5..1ff0c5d0e7 100644
--- a/src/mainboard/siemens/sitemp_g1p1/acpi_tables.c
+++ b/src/mainboard/siemens/sitemp_g1p1/acpi_tables.c
@@ -96,14 +96,13 @@ void mainboard_inject_dsdt(void)
global_vars_t *gnvs = cbmem_add (CBMEM_ID_ACPI_GNVS, GLOBAL_VARS_SIZE);
if (gnvs) {
- int scopelen;
memset(gnvs, 0, sizeof(*gnvs));
acpi_write_gvars(gnvs);
/* Add it to SSDT. */
- scopelen = acpigen_write_scope("\\");
- scopelen += acpigen_write_name_dword("NVSA", (u32) gnvs);
- acpigen_patch_len(scopelen - 1);
+ acpigen_write_scope("\\");
+ acpigen_write_name_dword("NVSA", (u32) gnvs);
+ acpigen_pop_len();
}
}