You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/02/04 00:19:26 UTC

[2/3] incubator-mynewt-larva git commit: Expose symbol for current progress within heap.

Expose symbol for current progress within heap.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/45865fd2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/45865fd2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/45865fd2

Branch: refs/heads/master
Commit: 45865fd240c1d5b7f25e2847f836548e8e550a48
Parents: 4de676a
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Feb 3 15:18:19 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Wed Feb 3 15:18:19 2016 -0800

----------------------------------------------------------------------
 hw/bsp/nrf51dk/src/sbrk.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/45865fd2/hw/bsp/nrf51dk/src/sbrk.c
----------------------------------------------------------------------
diff --git a/hw/bsp/nrf51dk/src/sbrk.c b/hw/bsp/nrf51dk/src/sbrk.c
index 828cad1..1c2ea62 100644
--- a/hw/bsp/nrf51dk/src/sbrk.c
+++ b/hw/bsp/nrf51dk/src/sbrk.c
@@ -19,11 +19,10 @@
 extern char __HeapBase;
 extern char __HeapLimit;
 
+static char *brk = &__HeapBase;
 void *
 _sbrk(int incr)
 {
-    static char *brk = &__HeapBase;
-
     void *prev_brk;
 
     if (incr < 0) {