diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2023-11-10 19:57:03 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-11-13 14:10:33 +0000 |
commit | 6ac6f6a6d096cb9b37e57e4cf3ad6fdccdcfad2f (patch) | |
tree | 249b9123a9d0593a285f1679a8b82036f53664b1 /src/acpi/acpigen.c | |
parent | 291a14223aa8e6291858b59ce41b53a1ee9687fe (diff) |
acpi/acpigen: point out what acpigen_write_len_f does
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Ibaf2f54f2f428f4438ef22b7f9d205db10e144db
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79001
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Diffstat (limited to 'src/acpi/acpigen.c')
-rw-r--r-- | src/acpi/acpigen.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |