From 6ac6f6a6d096cb9b37e57e4cf3ad6fdccdcfad2f Mon Sep 17 00:00:00 2001 From: Felix Held Date: Fri, 10 Nov 2023 19:57:03 +0100 Subject: acpi/acpigen: point out what acpigen_write_len_f does Signed-off-by: Felix Held Change-Id: Ibaf2f54f2f428f4438ef22b7f9d205db10e144db Reviewed-on: https://review.coreboot.org/c/coreboot/+/79001 Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- src/acpi/acpigen.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/acpi/acpigen.c') diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c index b2db19d249..57f0d10488 100644 --- a/src/acpi/acpigen.c +++ b/src/acpi/acpigen.c @@ -29,6 +29,8 @@ void acpigen_write_len_f(void) { ASSERT(ltop < (ACPIGEN_LENSTACK_SIZE - 1)) len_stack[ltop++] = gencurrent; + /* Reserve 3 bytes for PkgLength. The actual byte values will be written later in the + acpigen_pop_len call. */ acpigen_emit_byte(0); acpigen_emit_byte(0); acpigen_emit_byte(0); -- cgit v1.2.3