diff options
author | Simon Glass <sjg@chromium.org> | 2015-08-10 20:44:29 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-08-14 09:50:07 -0600 |
commit | 2afddae07523f23f77acd066ad1719f53d289f98 (patch) | |
tree | a73fe29f61e4d3b0c9cfc7e633eeb36cf8b659de /common | |
parent | 93afae5d055bc5467d49f211b2167f6f0f4e39f7 (diff) | |
download | u-boot-imx-2afddae07523f23f77acd066ad1719f53d289f98.zip u-boot-imx-2afddae07523f23f77acd066ad1719f53d289f98.tar.gz u-boot-imx-2afddae07523f23f77acd066ad1719f53d289f98.tar.bz2 |
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>
Diffstat (limited to 'common')
-rw-r--r-- | common/board_f.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/board_f.c b/common/board_f.c index 8cca4de..74f77f1 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -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); |