acpigen: Add new function acpigen_pop_len

Hardware / Coreboot - Vladimir Serbinenko [gmail.com] - 8 November 2014 15:28 UTC

acpigen_patch_len doesn't really need its argument: length always includes everything from length bytes to current pointer and never bytes before it. Hence just infer all the info implicitly.

Argument is wrong in several places through the codebase but ACPI parsing is lax enough to swallow incorrect SSDT. After this function is used throughout the codebase, these issues will be fixed.

Change-Id: I9fa536a614c5595146a7a1cd71f2676d8a8d9c2f

430363a acpigen: Add new function acpigen_pop_len
src/arch/x86/boot/acpigen.c | 13 +++++++++++++
src/arch/x86/include/arch/acpigen.h | 1 +
2 files changed, 14 insertions(+)

Upstream: review.coreboot.org


  • Share