
From: Simon Glass sjg@chromium.org
The v0.9 spec provides for an 8-byte header for each blob, with fewer fields. Drop spare value from bloblist record header. The blob data 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. Changes in v3 - Update the calculation of the bloblist record offset to make sure that each bloblist record data section start address fulfills the alignment requirement. - Update commit message. Changes in v5 - Squash #6 from v4 into this patch.
common/bloblist.c | 24 +++++++++++++++--------- include/bloblist.h | 34 ++++++++++++++++++++++------------ test/bloblist.c | 16 ++++++++-------- 3 files changed, 45 insertions(+), 29 deletions(-)
Applied to u-boot-dm/next, thanks!