]> git.sur5r.net Git - u-boot/commitdiff
microblaze: Do not use CONFIG_SYS_GENERIC_GLOBAL_DATA
authorMichal Simek <michal.simek@xilinx.com>
Fri, 30 Jan 2015 14:45:02 +0000 (15:45 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 9 Feb 2015 14:13:12 +0000 (15:13 +0100)
Because it is not compatible with DM where
malloc_base has to be available early and init
has to be done in ASM.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/cpu/start.S
arch/microblaze/include/asm/config.h

index 4023ec067531474207cf5d4432b84d669348c89e..3eeeab4b88d3122233e1d585ca1137318749cf78 100644 (file)
@@ -151,6 +151,7 @@ clear_bss:
 3:     /* jumping to board_init */
 #ifndef CONFIG_SPL_BUILD
        or      r5, r0, r0      /* flags - empty */
+       addi    r31, r0, _gd
        brai    board_init_f
 #else
        addi    r31, r0, CONFIG_SYS_SPL_MALLOC_END
@@ -158,6 +159,11 @@ clear_bss:
 #endif
 1:     bri     1b
 
+ .section .bss
+.align 4
+_gd:
+         .space  GENERATED_GBL_DATA_SIZE
+
 #ifndef CONFIG_SPL_BUILD
 /*
  * Read 16bit little endian
index 468673460bfb19c1091d84020a9dbc3cae9d79a2..32fd636b61dfc3ff4f89e764e32ffa958182fc99 100644 (file)
@@ -13,6 +13,5 @@
 
 #define CONFIG_NR_DRAM_BANKS   1
 #define CONFIG_SYS_GENERIC_BOARD
-#define CONFIG_SYS_GENERIC_GLOBAL_DATA
 
 #endif