projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
831c161
)
bloblist: Reserve an aligned base
author
Simon Glass
<sjg@chromium.org>
Mon, 21 Oct 2019 23:26:46 +0000
(17:26 -0600)
committer
Simon Glass
<sjg@chromium.org>
Sun, 27 Oct 2019 16:56:51 +0000
(10:56 -0600)
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>
common/board_f.c
patch
|
blob
|
history
diff --git
a/common/board_f.c
b/common/board_f.c
index 591f18f391e22e7ae515c265de050e63f5d7e156..4852a3b0d8475618e29fda14ace78a6fac34f45e 100644
(file)
--- 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