7 extern int _write (int, char *, size_t);
13 extern char end
; /* Defined by the linker */
14 static char *heap_end
;
17 char *sp
= (char *)stack_ptr
;
19 char *sp
= (char *)&sp
;
26 prev_heap_end
= heap_end
;
30 _write (1, "Heap and stack collision\n", 25);
33 return (caddr_t
) prev_heap_end
;