X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=lib_arm%2Fboard.c;h=a0e56d5ae8f9fbd71c8f4863a37045602fa81039;hb=d42914fbb8fc886f75da1bf74643fc3e7a00f3ce;hp=62b78744372efbd62fce89a3ed88b8acec1c5253;hpb=d870552ee4b83842e23cbd64a3a38b277136d568;p=oweals%2Fu-boot.git diff --git a/lib_arm/board.c b/lib_arm/board.c index 62b7874437..a0e56d5ae8 100644 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -82,17 +82,6 @@ extern void rtl8019_get_enetaddr (uchar * addr); #include #endif -static -void mem_malloc_init (ulong dest_addr) -{ - mem_malloc_start = dest_addr; - mem_malloc_end = dest_addr + CONFIG_SYS_MALLOC_LEN; - mem_malloc_brk = mem_malloc_start; - - memset ((void *) mem_malloc_start, 0, - mem_malloc_end - mem_malloc_start); -} - /************************************************************************ * Coloured LED functionality @@ -300,7 +289,8 @@ void start_armboot (void) } /* armboot_start is defined in the board-specific linker script */ - mem_malloc_init (_armboot_start - CONFIG_SYS_MALLOC_LEN); + mem_malloc_init (_armboot_start - CONFIG_SYS_MALLOC_LEN, + CONFIG_SYS_MALLOC_LEN); #ifndef CONFIG_SYS_NO_FLASH /* configure available FLASH banks */