or1k: Make heap end globally visible

Boards may change the initial value from _end to another value.

           * or1k/sbrk.c: Make heap end globally visible
This commit is contained in:
Jeff Johnston 2015-08-07 14:43:38 -04:00
parent 49380b7ee3
commit 0d04c03829
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2015-08-07 Stefan Wallentowitz <stefan.wallentowitz@tum.de>
* or1k/sbrk.c: Make heap end globally visible
2015-08-04 Nick Clifton <nickc@redhat.com> 2015-08-04 Nick Clifton <nickc@redhat.com>
* rl78/rl78-sim.ld: Provide a value for __rl78_abs__. * rl78/rl78-sim.ld: Provide a value for __rl78_abs__.

View File

@ -21,7 +21,7 @@
extern uint32_t end; /* Set by linker. */ extern uint32_t end; /* Set by linker. */
uint32_t _or1k_heap_start = &end; uint32_t _or1k_heap_start = &end;
static uint32_t _or1k_heap_end; uint32_t _or1k_heap_end;
void * void *
_sbrk_r (struct _reent * reent, ptrdiff_t incr) _sbrk_r (struct _reent * reent, ptrdiff_t incr)