aboutsummaryrefslogtreecommitdiff
path: root/src/arch/i386/boot/acpigen.c
diff options
context:
space:
mode:
authorRudolf Marek <r.marek@assembler.cz>2009-03-02 22:45:31 +0000
committerRudolf Marek <r.marek@assembler.cz>2009-03-02 22:45:31 +0000
commit6b2e760f03a6605abe357e1cda51999de2a519e2 (patch)
tree83d902dcc28425efbdfddae42dd8db0e954a0b71 /src/arch/i386/boot/acpigen.c
parentfc1924850107c1b1cc1e817c82cade90c2445078 (diff)
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 <r.marek@assembler.cz> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3968 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/i386/boot/acpigen.c')
-rw-r--r--src/arch/i386/boot/acpigen.c4
1 files changed, 3 insertions, 1 deletions
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,