summaryrefslogtreecommitdiffstats
path: root/lib/asm-offsets.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/asm-offsets.c')
-rw-r--r--lib/asm-offsets.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c
index 4eb61747c4..22095610f9 100644
--- a/lib/asm-offsets.c
+++ b/lib/asm-offsets.c
@@ -21,5 +21,9 @@
int main(void)
{
+ /* Round up to make sure size gives nice stack alignment */
+ DEFINE(GENERATED_GBL_DATA_SIZE,
+ (sizeof(struct global_data)+15) & ~15);
+
return 0;
}
OpenPOWER on IntegriCloud