aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/acpi/acpigen.c2
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);