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