]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - lib/asm-offsets.c
Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value
[people/ms/u-boot.git] / lib / asm-offsets.c
index 4eb61747c4fc7cfba03fc23b991d80f99ff5d45e..22095610f931d8ef3253d58f23f78f045be565b0 100644 (file)
@@ -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;
 }