mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-20 20:04:46 +00:00
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>
This commit is contained in:
parent
831c161119
commit
5074a8a3c0
1 changed files with 1 additions and 0 deletions
|
@ -588,6 +588,7 @@ static int reserve_stacks(void)
|
||||||
static int reserve_bloblist(void)
|
static int reserve_bloblist(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_BLOBLIST
|
#ifdef CONFIG_BLOBLIST
|
||||||
|
gd->start_addr_sp &= ~0xf;
|
||||||
gd->start_addr_sp -= CONFIG_BLOBLIST_SIZE;
|
gd->start_addr_sp -= CONFIG_BLOBLIST_SIZE;
|
||||||
gd->new_bloblist = map_sysmem(gd->start_addr_sp, CONFIG_BLOBLIST_SIZE);
|
gd->new_bloblist = map_sysmem(gd->start_addr_sp, CONFIG_BLOBLIST_SIZE);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue