Skip to content

Commit

Permalink
or1k: Make heap end globally visible
Browse files Browse the repository at this point in the history
    Boards may change the initial value from _end to another value.

           * or1k/sbrk.c: Make heap end globally visible
  • Loading branch information
jjohnstn committed Aug 7, 2015
1 parent 49380b7 commit 0d04c03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions libgloss/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2015-08-07 Stefan Wallentowitz <[email protected]>

* or1k/sbrk.c: Make heap end globally visible

2015-08-04 Nick Clifton <[email protected]>

* rl78/rl78-sim.ld: Provide a value for __rl78_abs__.
Expand Down
2 changes: 1 addition & 1 deletion libgloss/or1k/sbrk.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

extern uint32_t end; /* Set by linker. */
uint32_t _or1k_heap_start = &end;
static uint32_t _or1k_heap_end;
uint32_t _or1k_heap_end;

void *
_sbrk_r (struct _reent * reent, ptrdiff_t incr)
Expand Down

0 comments on commit 0d04c03

Please sign in to comment.