URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/gnu-src
- from Rev 196 to Rev 197
- ↔ Reverse comparison
Rev 196 → Rev 197
/newlib-1.17.0/libgloss/or32/sbrk.c
67,17 → 67,19
void * |
_sbrk (int nbytes) |
{ |
/* Symbols defined by linker map */ |
extern int end; /* start of free memory */ |
extern int stack; /* end of free memory */ |
/* Symbol defined by linker map */ |
extern int end; /* start of free memory (as symbol) */ |
|
/* Value set by crt0.S */ |
extern void *stack; /* end of free memory */ |
|
/* The statically held previous end of the stack, with its initialization. */ |
static void *heap_ptr = (void *)&end; /* Previous end */ |
|
if (((void *) &stack - (heap_ptr + nbytes)) > STACK_BUFFER ) |
if ((stack - (heap_ptr + nbytes)) > STACK_BUFFER ) |
{ |
void * base = heap_ptr; |
heap_ptr += nbytes; |
void *base = heap_ptr; |
heap_ptr += nbytes; |
|
return base; |
} |
/newlib-1.17.0/libgloss/ChangeLog
1,3 → 1,8
2010-07-14 Jeremy Bennett <jeremy.bennett@embecosm.com> |
|
* or32/crt0.S: Use l.j rather than l.jr for library calls. |
* or32/sbrk.c (_sbrk): Use stack, rather than &stack. |
|
2010-07-07 Jeremy Bennett <jeremy.bennett@embecosm.com> |
|
* README: Updated for OpenRISC |