11 extern char __stack
; /* Defined by the linker */
12 extern char _end
; /* Defined by the linker */
13 static char *heap_end
;
15 char *sp
= (char *)&sp
;
21 prev_heap_end
= heap_end
;
25 _write (1, "Heap and stack collision\n", 25);
29 return (caddr_t
) prev_heap_end
;