]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
microblaze: spl: Do not call mem_malloc_init and use early alloc
authorMichal Simek <michal.simek@xilinx.com>
Tue, 3 Feb 2015 15:24:48 +0000 (16:24 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 10:59:17 +0000 (12:59 +0200)
commit17b9682bafabf4f88dd951a7d4df13d45e2c69b1
tree483167092bf74840891040ed2496dc145ddd0730
parent45de78b350f3036bb6d61d321866603ab99cf610
microblaze: spl: Do not call mem_malloc_init and use early alloc

This patch has some parts connected together:
- Use _gd in bss section which is automatically cleared
  Location at SPL_MALLOC_END wasn't cleared at all
- Use MALLOC_F_LEN(early alloc) instead of FULL MALLOC
  (mem_malloc_init is not called at all)
- Simplify malloc and stack init.
  At the end of SPL addr is malloc area and below is stack

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