STMs: Microlib heap fix for new, malloc and friends

heap can grow outside 0x400 default size and does not overlap stack
area.
pull/475/head
Giuliano Dianda 2014-09-03 00:14:49 +02:00
parent d71a7579b4
commit 722cb53e96
10 changed files with 11 additions and 11 deletions

View File

@ -54,7 +54,7 @@ Heap_Size EQU 0x00000400
__heap_base
Heap_Mem SPACE Heap_Size
__heap_limit
__heap_limit EQU (__initial_sp - Stack_Size)
PRESERVE8
THUMB

View File

@ -66,7 +66,7 @@ Heap_Size EQU 0x00000400
__heap_base
Heap_Mem SPACE Heap_Size
__heap_limit
__heap_limit EQU (__initial_sp - Stack_Size)
PRESERVE8
THUMB

View File

@ -54,7 +54,7 @@ Heap_Size EQU 0x00000400
__heap_base
Heap_Mem SPACE Heap_Size
__heap_limit
__heap_limit EQU (__initial_sp - Stack_Size)
PRESERVE8
THUMB

View File

@ -56,7 +56,7 @@ Heap_Size EQU 0x00000400
__heap_base
Heap_Mem SPACE Heap_Size
__heap_limit
__heap_limit EQU (__initial_sp - Stack_Size)
PRESERVE8
THUMB

View File

@ -66,7 +66,7 @@ Heap_Size EQU 0x00000400
__heap_base
Heap_Mem SPACE Heap_Size
__heap_limit
__heap_limit EQU (__initial_sp - Stack_Size)
PRESERVE8
THUMB

View File

@ -66,7 +66,7 @@ Heap_Size EQU 0x00000400
__heap_base
Heap_Mem SPACE Heap_Size
__heap_limit
__heap_limit EQU (__initial_sp - Stack_Size)
PRESERVE8
THUMB

View File

@ -66,7 +66,7 @@ Heap_Size EQU 0x00000400
__heap_base
Heap_Mem SPACE Heap_Size
__heap_limit
__heap_limit EQU (__initial_sp - Stack_Size)
PRESERVE8
THUMB

View File

@ -66,7 +66,7 @@ Heap_Size EQU 0x00000400
__heap_base
Heap_Mem SPACE Heap_Size
__heap_limit
__heap_limit EQU (__initial_sp - Stack_Size)
PRESERVE8
THUMB

View File

@ -54,7 +54,7 @@ Heap_Size EQU 0x00000400
__heap_base
Heap_Mem SPACE Heap_Size
__heap_limit
__heap_limit EQU (__initial_sp - Stack_Size)
PRESERVE8
THUMB

View File

@ -48,7 +48,7 @@ __initial_sp EQU 0x20004000 ; Top of RAM
; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h>
Heap_Size EQU 0x00000000
Heap_Size EQU 0x00000400
AREA HEAP, NOINIT, READWRITE, ALIGN=3
EXPORT __heap_base
@ -56,7 +56,7 @@ Heap_Size EQU 0x00000000
__heap_base
Heap_Mem SPACE Heap_Size
__heap_limit
__heap_limit EQU (__initial_sp - Stack_Size)
PRESERVE8
THUMB