15 static void * heap_end = (
void *) &__heap_start;
17 void *
sbrk(ptrdiff_t incr) {
18 void *prev_heap_end, *next_heap_end, *ret;
21 prev_heap_end = heap_end;
24 next_heap_end = (
void *)((((uintptr_t)heap_end + incr) + 7) & ~7);
27 if (next_heap_end > stack_min) {
31 heap_end = next_heap_end;
32 ret = (
void *)prev_heap_end;