Skip to content
Snippets Groups Projects
Commit 2212e69b authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

Revert "Align global_data to a 16-byte boundary"


This causes widespread breakage due to the operation of the low-level code
in crt0.S and cro0_64.S for ARM at least.

The fix is not complicated but it seems safer to revert this for now.

This reverts commit 2afddae0.
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 58243001
No related branches found
No related tags found
No related merge requests found
......@@ -499,7 +499,6 @@ 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);
......
......@@ -99,8 +99,7 @@ typedef struct global_data {
int pcidelay_done;
#endif
struct udevice *cur_serial_dev; /* current serial device */
/* arch-specific data */
struct arch_global_data arch __attribute__((aligned(16)));
struct arch_global_data arch; /* architecture-specific data */
} gd_t;
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment