10 extern char end
; /* Defined by the linker */
11 static char *heap_end
;
14 char *sp
= (char *)stack_ptr
;
16 char *sp
= (char *)&sp
;
23 prev_heap_end
= heap_end
;
27 _write (1, "Heap and stack collision\n", 25);
30 return (caddr_t
) prev_heap_end
;