8 extern int _write (int, char *, int);
13 /* `_end' is defined in the linker script.
14 We must handle it carefully as we don't want the compiler to think
15 it lives in the small data area. Use medium model to ensure 32 bit
17 extern char _end
__attribute__ ((__model__(__medium__
)));
18 static char *heap_end
;
20 char *sp
= (char *)&sp
;
26 prev_heap_end
= heap_end
;
29 _write (1, "Heap and stack collision\n", 25);
30 #if 0 /* Calling abort brings in the signal handling code. */
37 return (caddr_t
) prev_heap_end
;