summaryrefslogtreecommitdiff
path: root/lib_sh
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2009-08-21 23:05:19 -0500
committerWolfgang Denk <wd@denx.de>2009-09-04 21:45:39 +0200
commit5e93bd1c9aaea886c5e5c7c1b6114ab36c30668f (patch)
treeec61a4a1610baf8ebfad8fc08688c393368c4dbd /lib_sh
parent65f6f07b72a71b83d775c4d20d7ebcd6b2d2086d (diff)
Consolidate arch-specific sbrk() implementations
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Diffstat (limited to 'lib_sh')
-rw-r--r--lib_sh/board.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib_sh/board.c b/lib_sh/board.c
index 829455d8b1..001e89c714 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;