aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-10-21 17:26:46 -0600
committerSimon Glass <sjg@chromium.org>2019-10-27 10:56:51 -0600
commit5074a8a3c0d0d1e11a1d51a7fb0ce8746668046f (patch)
treeb8e3a7b519bc3cfb7007fa407a90b662e2b653f4 /common
parent831c1611195961bf79ac55a8deaac9034112ef5f (diff)
downloadu-boot-5074a8a3c0d0d1e11a1d51a7fb0ce8746668046f.zip
u-boot-5074a8a3c0d0d1e11a1d51a7fb0ce8746668046f.tar.gz
u-boot-5074a8a3c0d0d1e11a1d51a7fb0ce8746668046f.tar.bz2
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 <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/board_f.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/board_f.c b/common/board_f.c
index 591f18f..4852a3b 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