
2 Dec
2023
2 Dec
'23
7:31 p.m.
On Mon, 27 Nov 2023 at 12:53, Raymond Mao raymond.mao@linaro.org wrote:
From: Simon Glass sjg@chromium.org
The v0.9 spec provides for an 8-byte header for each blob, with fewer fields. The blob start address should be aligned to the alignment specified by the bloblist header. Update the implementation to match this.
Signed-off-by: Simon Glass sjg@chromium.org Co-developed-by: Raymond Mao raymond.mao@linaro.org Signed-off-by: Raymond Mao raymond.mao@linaro.org
Changes in v2
- Update the blob start address to align to the alignment required by the bloblist header.
- Define the macros of bloblist header size and bloblist record header size as the size of their structures.
common/bloblist.c | 17 +++++++++-------- include/bloblist.h | 33 ++++++++++++++++++++++----------- test/bloblist.c | 16 ++++++++-------- 3 files changed, 39 insertions(+), 27 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org