Author: ruik
Date: 2009-03-02 23:45:31 +0100 (Mon, 02 Mar 2009)
New Revision: 3968

Modified:
   trunk/coreboot-v2/src/arch/i386/boot/acpigen.c
Log:
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 <[email protected]>
Acked-by: Peter Stuge <[email protected]>



Modified: trunk/coreboot-v2/src/arch/i386/boot/acpigen.c
===================================================================
--- trunk/coreboot-v2/src/arch/i386/boot/acpigen.c      2009-03-01 18:05:25 UTC 
(rev 3967)
+++ trunk/coreboot-v2/src/arch/i386/boot/acpigen.c      2009-03-02 22:45:31 UTC 
(rev 3968)
@@ -239,8 +239,10 @@
        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,


--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to