]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/board_f.c
Align global_data to a 16-byte boundary
[karo-tx-uboot.git] / common / board_f.c
index 7a95794882508d465905c7a363069ef73b351e17..84418a29b4c6f9425e3098b0626e7216ed14bbc3 100644 (file)
@@ -504,6 +504,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);