mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[ion] Remove _liba_heap_start, simply use _heap_start
Change-Id: I395762275f3aa1832210dfc3faae9c0eefb91d9e
This commit is contained in:
@@ -3,7 +3,6 @@ objs += $(addprefix ion/src/device/, \
|
||||
battery.o\
|
||||
device.o\
|
||||
display.o\
|
||||
heap.o\
|
||||
keyboard.o\
|
||||
led.o\
|
||||
power.o\
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
/data_section_end_ram/ { data_end = $1 }
|
||||
/bss_section_start_ram/ { bss_start = $1 }
|
||||
/bss_section_end_ram/ { bss_end = $1 }
|
||||
/liba_heap_start/ { heap_start = $1 }
|
||||
/liba_heap_end/ { heap_end = $1 }
|
||||
/heap_start/ { heap_start = $1 }
|
||||
/heap_end/ { heap_end = $1 }
|
||||
/framebuffer_start/ { framebuffer_start = $1 }
|
||||
/framebuffer_end/ { framebuffer_end = $1 }
|
||||
/stack_start/ { stack_start = $1 }
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
extern char _heap_start;
|
||||
extern char _heap_end;
|
||||
|
||||
char * _liba_heap_start = &_heap_start;
|
||||
char * _liba_heap_end = &_heap_end;
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user