From: Simon Glass Date: Mon, 21 Oct 2019 23:26:46 +0000 (-0600) Subject: bloblist: Reserve an aligned base X-Git-Tag: v2025.01-rc5-pxa1908~2721^2~9 X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/index.xml?a=commitdiff_plain;h=5074a8a3c0d0d1e11a1d51a7fb0ce8746668046f;p=u-boot.git bloblist: Reserve an aligned base Make sure that the bloblist starts on an aligned boundary. This protects against one of the early allocating causing the alignment to be lost. Signed-off-by: Simon Glass --- diff --git a/common/board_f.c b/common/board_f.c index 591f18f391..4852a3b0d8 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -588,6 +588,7 @@ static int reserve_stacks(void) static int reserve_bloblist(void) { #ifdef CONFIG_BLOBLIST + gd->start_addr_sp &= ~0xf; gd->start_addr_sp -= CONFIG_BLOBLIST_SIZE; gd->new_bloblist = map_sysmem(gd->start_addr_sp, CONFIG_BLOBLIST_SIZE); #endif