From: Simon Glass Date: Mon, 14 Oct 2019 16:00:09 -0600 Subject: [U-Boot] [PATCH 3/9] bloblist: Reserve an aligned base In-Reply-To: <20191014220015.177359-1-sjg@chromium.org> References: <20191014220015.177359-1-sjg@chromium.org> Message-ID: <20191014220015.177359-4-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Make sure that the bloblist starts on an aligned boundary. This protects against one of the earlier allocations causing the alignment to be lost. Signed-off-by: Simon Glass --- common/board_f.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/board_f.c b/common/board_f.c index 591f18f391e..4852a3b0d84 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 -- 2.23.0.700.g56cf767bdb-goog