From 6b2e760f03a6605abe357e1cda51999de2a519e2 Mon Sep 17 00:00:00 2001 From: Rudolf Marek Date: Mon, 2 Mar 2009 22:45:31 +0000 Subject: [PATCH] Small bug somehow slipped there. The method body length is incorrectly computed. The attached patch fixes this. I did not spotted that because the return arg is moved just outside of method and I have overseen the closing } Signed-off-by: Rudolf Marek Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3968 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/arch/i386/boot/acpigen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/arch/i386/boot/acpigen.c b/src/arch/i386/boot/acpigen.c index 53bf6d0841..f1132f610b 100644 --- a/src/arch/i386/boot/acpigen.c +++ b/src/arch/i386/boot/acpigen.c @@ -239,8 +239,10 @@ int acpigen_write_PPC(u8 nr) acpigen_emit_byte(0xa4); /* arg */ len += acpigen_write_byte(nr); + /* add all single bytes */ + len += 3; acpigen_patch_len(len - 1); - return len + 3; + return len; } int acpigen_write_PSS_package(u32 coreFreq, u32 power, u32 transLat, u32 busmLat,