]>
sourceware.org Git - newlib-cygwin.git/blob - libgloss/m32r/sbrk.c
9 /* `_end' is defined in the linker script.
10 We must handle it carefully as we don't want the compiler to think
11 it lives in the small data area. Use medium model to ensure 32 bit
13 extern char _end
__attribute__ ((__model__(__medium__
)));
14 static char *heap_end
;
16 char *sp
= (char *)&sp
;
22 prev_heap_end
= heap_end
;
25 _write (1, "Heap and stack collision\n", 25);
26 #if 0 /* Calling abort brings in the signal handling code. */
33 return (caddr_t
) prev_heap_end
;
This page took 0.034856 seconds and 5 git commands to generate.