diff options
author | Simon Glass <sjg@chromium.org> | 2020-09-27 18:46:18 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-22 09:53:31 -0400 |
commit | 4a08fae1963e18d4c7d030ceade3c6c966f873ad (patch) | |
tree | e1d77043911ced5824171ed4b2f1218b99ac5be1 /common | |
parent | 28dc20f34a5a946427d3d02aaf76b4d90f3c5468 (diff) | |
download | u-boot-4a08fae1963e18d4c7d030ceade3c6c966f873ad.tar.gz |
bloblist: Place on a 4KB boundary
It is much easier to read the bloblist addresses if it starts on a 4KB
boundary. Update it to align it accordingly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/board_f.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/board_f.c b/common/board_f.c index 62473abf79..e99277d7e8 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -573,7 +573,9 @@ static int reserve_stacks(void) static int reserve_bloblist(void) { #ifdef CONFIG_BLOBLIST - gd->start_addr_sp = reserve_stack_aligned(CONFIG_BLOBLIST_SIZE); + /* Align to a 4KB boundary for easier reading of addresses */ + gd->start_addr_sp = ALIGN_DOWN(gd->start_addr_sp - CONFIG_BLOBLIST_SIZE, + 0x1000); gd->new_bloblist = map_sysmem(gd->start_addr_sp, CONFIG_BLOBLIST_SIZE); #endif |