]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bloblist: Place on a 4KB boundary
authorSimon Glass <sjg@chromium.org>
Mon, 28 Sep 2020 00:46:18 +0000 (18:46 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2020 13:53:31 +0000 (09:53 -0400)
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>
common/board_f.c

index 62473abf793cab55ca4626caf72791cf2ebdf8a9..e99277d7e88a10791c948d5d9bdff4b4c748c07f 100644 (file)
@@ -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