aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2014-11-04 21:21:06 +0100
committerVladimir Serbinenko <phcoder@gmail.com>2014-11-09 02:01:43 +0100
commitf7c75dbe074080bbc7bd7efb2356486663777ce3 (patch)
tree9f409966ac4d8ef0b2f1db804897a044f7daf7b4
parent1bad88e6eb8745189430bc0fd91eb96058f44c27 (diff)
downloadcoreboot-f7c75dbe074080bbc7bd7efb2356486663777ce3.tar.gz
coreboot-f7c75dbe074080bbc7bd7efb2356486663777ce3.tar.xz
coreboot-f7c75dbe074080bbc7bd7efb2356486663777ce3.zip
i82801ix: Move to implicit length patching
Change-Id: I4027bc8c017901781ae56c7d3bd751bac50719f2 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/7329 Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Tested-by: build bot (Jenkins)
-rw-r--r--src/southbridge/intel/i82801ix/lpc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/southbridge/intel/i82801ix/lpc.c b/src/southbridge/intel/i82801ix/lpc.c
index 664088cd2..dc2cfe8ed 100644
--- a/src/southbridge/intel/i82801ix/lpc.c
+++ b/src/southbridge/intel/i82801ix/lpc.c
@@ -544,16 +544,15 @@ static void southbridge_inject_dsdt(void)
global_nvs_t *gnvs = cbmem_add (CBMEM_ID_ACPI_GNVS, sizeof (*gnvs));
if (gnvs) {
- int scopelen;
memset(gnvs, 0, sizeof (*gnvs));
acpi_create_gnvs(gnvs);
/* And tell SMI about it */
smm_setup_structures(gnvs, NULL, NULL);
/* 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();
}
}
#endif