]> git.dujemihanovic.xyz Git - u-boot.git/commit
acpigen: Support writing a length
authorSimon Glass <sjg@chromium.org>
Tue, 7 Jul 2020 19:11:50 +0000 (13:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
commit7e148f2ed365c89f50701ed45acd6e36138de447
treeba5c7a575add711589a21a5b1b1527094e42c8ca
parent70e5e67a4dc7cee0c69eaf9f5cc07b201a59cb59
acpigen: Support writing a length

It is convenient to write a length value for preceding a block of data.
Of course the length is not known or is hard to calculate a priori. So add
a way to mark the start on a stack, so the length can be updated when
known.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
include/acpi/acpigen.h
include/dm/acpi.h
lib/acpi/acpigen.c
test/dm/acpigen.c