]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - lib_sparc/board.c
Consolidate arch-specific mem_malloc_init() implementations
[people/ms/u-boot.git] / lib_sparc / board.c
index e69431f8b896e5de9c1d6ea8f0c554ff192250fc..6aadb56f63c1fa1bbd39e7a54957528d9e7ba511 100644 (file)
@@ -74,25 +74,6 @@ static char *failed = "*** failed ***\n";
 
 ulong monitor_flash_len;
 
-/************************************************************************
- * Utilities                                                           *
- ************************************************************************
- */
-
-/*
- * The Malloc area is immediately below the monitor copy in RAM
- */
-static void mem_malloc_init(ulong start, ulong size)
-{
-       mem_malloc_start = start;
-       mem_malloc_end = start + size;
-       mem_malloc_brk = start
-
-       memset((void *)mem_malloc_start, 0, size);
-}
-
-/***********************************************************************/
-
 /************************************************************************
  * Init Utilities                                                      *
  ************************************************************************
@@ -313,7 +294,7 @@ void board_init_f(ulong bootflag)
         */
        interrupt_init();
 
-       /* initialize malloc() area */
+       /* The Malloc area is immediately below the monitor copy in RAM */
        mem_malloc_init(CONFIG_SYS_MALLOC_BASE,
                        CONFIG_SYS_MALLOC_END - CONFIG_SYS_MALLOC_BASE);
        malloc_bin_reloc();