[PATCH v4 13/35] acpigen: Support writing a length

Bin Meng bmeng.cn at gmail.com
Mon Jul 13 04:53:03 CEST 2020


On Wed, Jul 8, 2020 at 3:12 AM Simon Glass <sjg at 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 at chromium.org>
> Reviewed-by: Wolfgang Wallner <wolfgang.wallner at 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 at gmail.com>


More information about the U-Boot mailing list