[ion] Remove _liba_heap_start, simply use _heap_start

Change-Id: I395762275f3aa1832210dfc3faae9c0eefb91d9e
This commit is contained in:
Romain Goyet
2016-09-21 13:50:58 +02:00
parent 47db327752
commit e3c6264068
4 changed files with 6 additions and 12 deletions

View File

@@ -2,8 +2,8 @@
#include <string.h>
#include <private/memconfig.h>
extern char * _liba_heap_start;
extern char * _liba_heap_end;
extern char _heap_start;
extern char _heap_end;
heap_config_t HeapConfig = {
.nHeap = 0
@@ -17,8 +17,8 @@ void * memsys5Realloc(void *pPrior, int nBytes);
int memsys5Roundup(int n);
static void configure_heap() {
HeapConfig.nHeap = (_liba_heap_end - _liba_heap_start);
HeapConfig.pHeap = _liba_heap_start;
HeapConfig.nHeap = (&_heap_end - &_heap_start);
HeapConfig.pHeap = &_heap_start;
HeapConfig.mnReq = 1;
HeapConfig.bMemstat = 0;
HeapConfig.xLog = 0;