mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
Align global_data to a 16-byte boundary
Some archs like to have larger alignment for their global data. Use 16 bytes which suits all current archs. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -499,6 +499,7 @@ static int setup_machine(void)
|
||||
static int reserve_global_data(void)
|
||||
{
|
||||
gd->start_addr_sp -= sizeof(gd_t);
|
||||
gd->start_addr_sp &= ~0xf;
|
||||
gd->new_gd = (gd_t *)map_sysmem(gd->start_addr_sp, sizeof(gd_t));
|
||||
debug("Reserving %zu Bytes for Global Data at: %08lx\n",
|
||||
sizeof(gd_t), gd->start_addr_sp);
|
||||
|
Reference in New Issue
Block a user