From 5e93bd1c9aaea886c5e5c7c1b6114ab36c30668f Mon Sep 17 00:00:00 2001 From: Peter Tyser Date: Fri, 21 Aug 2009 23:05:19 -0500 Subject: Consolidate arch-specific sbrk() implementations Signed-off-by: Peter Tyser --- lib_sh/board.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'lib_sh') diff --git a/lib_sh/board.c b/lib_sh/board.c index 829455d8b..001e89c71 100644 --- a/lib_sh/board.c +++ b/lib_sh/board.c @@ -38,10 +38,6 @@ const char version_string[] = U_BOOT_VERSION" ("U_BOOT_DATE" - "U_BOOT_TIME")"; unsigned long monitor_flash_len = CONFIG_SYS_MONITOR_LEN; -static unsigned long mem_malloc_start; -static unsigned long mem_malloc_end; -static unsigned long mem_malloc_brk; - static void mem_malloc_init(void) { @@ -52,20 +48,6 @@ static void mem_malloc_init(void) (mem_malloc_end - mem_malloc_start)); } -void *sbrk(ptrdiff_t increment) -{ - unsigned long old = mem_malloc_brk; - unsigned long new = old + increment; - - if ((new < mem_malloc_start) || - (new > mem_malloc_end)) { - return NULL; - } - - mem_malloc_brk = new; - return (void *) old; -} - static int sh_flash_init(void) { DECLARE_GLOBAL_DATA_PTR; -- cgit v1.2.3