> /* 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
ent
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 b/common/blo
2 matches
Mail list logo