From 608f796648e8de74f9aac3e60db3f7d87e69e9f4 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 28 Jan 2011 03:58:51 +0100 Subject: Work on the MPU port. The exception VTOR redirection doesn't work as expected. --- os/src/sbrk.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'os/src/sbrk.c') diff --git a/os/src/sbrk.c b/os/src/sbrk.c index 4085970..bff44a2 100644 --- a/os/src/sbrk.c +++ b/os/src/sbrk.c @@ -11,14 +11,15 @@ // Mostly stolen from mbed-freertos extern uintptr_t __heap_start, __heap_end; -extern uintptr_t __stack_start __attribute__((weak)); +//extern uintptr_t __stack_start; /* Low-level bulk RAM allocator -- used by Newlib's Malloc */ static void *heap_end = NULL; PRIVILEGED_FUNCTION void *_sbrk_r(struct _reent *ptr, ptrdiff_t incr) { void *prev_heap_end, *next_heap_end, *ret; - void *stack_min = (void *)(__stack_start ? __stack_start : __heap_end); +// void *stack_min = (void *)(__stack_start ? __stack_start : __heap_end); + void *stack_min = (void *)__heap_end; DBGOUT("_sbrk_r(%p, %u)\r\n", ptr, incr); -- cgit v1.2.3