6 register char *stack_ptr
asm ("sp");
7 extern int _write (int, char *, int);
13 extern char end
; /* Defined by the linker */
14 static char *heap_end
;
21 prev_heap_end
= heap_end
;
22 if (heap_end
+ incr
> stack_ptr
)
24 _write (1, "Heap and stack collision\n", 25);
28 return (caddr_t
)prev_heap_end
;