Re: [PATCH 10/14] bloblist: Handle alignment with a void entry

2023-07-26 Thread Julius Werner
> /* Calculate the new allocated total */ > - new_alloced = data_start + ALIGN(size, 1U << align_log2); > + new_alloced = data_start - map_to_sysmem(hdr) + > + ALIGN(size, 1U << align_log2); I think this is incorrect. There's no requirement that the size of an

[PATCH 10/14] bloblist: Handle alignment with a void entry

2023-07-25 Thread Simon Glass
Rather than setting the alignment using the header size, add an entirely new entry to cover the gap left by the alignment. Signed-off-by: Simon Glass --- common/bloblist.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/common/bloblist.c