]> git.ipfire.org Git - people/ms/u-boot.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)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 9 Feb 2015 14:13:12 +0000 (15:13 +0100)
commitca7d22662e1ca1b05fd4cd3d1f80efec93c499ef
treee94a54b936855a1c2c96e3067c5800586ffa9c7a
parent405e651d705e197babe423ef88e8224e2737fc06
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