
13 Jul
2020
13 Jul
'20
4:53 a.m.
On Wed, Jul 8, 2020 at 3:12 AM Simon Glass sjg@chromium.org wrote:
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
Changes in v4:
- Add a note about the hard-coded 3-byte length used
- Fix 'gas' typo
- Use 'null' instead of 'nul'
Changes in v3:
- Add a reference to the ACPI spec
- Add a define for the 0x80 constant
- Move the function comments into this patch
include/acpi/acpigen.h | 41 +++++++++++++++++++++++++++ include/dm/acpi.h | 9 +++++- lib/acpi/acpigen.c | 33 ++++++++++++++++++++++ test/dm/acpigen.c | 64 ++++++++++++++++++++++++++++++++++++++++-- 4 files changed, 144 insertions(+), 3 deletions(-)
Reviewed-by: Bin Meng bmeng.cn@gmail.com