-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

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]>

PS: Windows 7 still boots even with the modified patch from Carl-Daniel and this
fix ;) and also dynamically generated Pstates stuff...

Rudolf




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmZ8w4ACgkQ3J9wPJqZRNUrIgCgrF091ITg1SDHGxBMYBGMk8Sa
5Y4An3D7KITtpc/hSc044PU0FA1e+Tb+
=vNE+
-----END PGP SIGNATURE-----
Index: src/arch/i386/boot/acpigen.c
===================================================================
--- src/arch/i386/boot/acpigen.c.orig	2009-02-16 23:22:01.174225628 +0100
+++ src/arch/i386/boot/acpigen.c	2009-02-16 23:22:46.239887899 +0100
@@ -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,

Attachment: fix_ppcgen.patch.sig
Description: Binary data

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

Reply via email to