mirror of https://github.com/ARMmbed/mbed-os.git
K64F: Add page allocator sections to linker script
These changes are backwards compatible. Targets that do not use the page allocator heap will have the same stack and heap sizes available.pull/1753/head
parent
eb9d124230
commit
6aeafab6b3
|
@ -311,18 +311,29 @@ SECTIONS
|
||||||
.heap :
|
.heap :
|
||||||
{
|
{
|
||||||
. = ALIGN(8);
|
. = ALIGN(8);
|
||||||
|
__uvisor_heap_start = .;
|
||||||
__end__ = .;
|
__end__ = .;
|
||||||
PROVIDE(end = .);
|
PROVIDE(end = .);
|
||||||
__HeapBase = .;
|
__HeapBase = .;
|
||||||
. += HEAP_SIZE;
|
. += HEAP_SIZE;
|
||||||
__HeapLimit = .;
|
__HeapLimit = .;
|
||||||
__heap_limit = .; /* Add for _sbrk */
|
__heap_limit = .; /* Add for _sbrk */
|
||||||
|
__uvisor_heap_end = .;
|
||||||
} > m_data_2
|
} > m_data_2
|
||||||
|
|
||||||
.stack :
|
.stack :
|
||||||
{
|
{
|
||||||
. = ALIGN(8);
|
. = ALIGN(8);
|
||||||
. += STACK_SIZE;
|
. += STACK_SIZE;
|
||||||
|
__StackTop = .;
|
||||||
|
} > m_data_2
|
||||||
|
|
||||||
|
/* Heap space for the page allocator */
|
||||||
|
.page_heap (NOLOAD) :
|
||||||
|
{
|
||||||
|
__uvisor_page_start = .;
|
||||||
|
. = ORIGIN(m_data_2) + LENGTH(m_data_2) - 4;
|
||||||
|
__uvisor_page_end = .;
|
||||||
} > m_data_2
|
} > m_data_2
|
||||||
|
|
||||||
m_usb_bdt USB_RAM_START (NOLOAD) :
|
m_usb_bdt USB_RAM_START (NOLOAD) :
|
||||||
|
@ -337,7 +348,6 @@ SECTIONS
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initializes stack on the end of block */
|
/* Initializes stack on the end of block */
|
||||||
__StackTop = ORIGIN(m_data_2) + LENGTH(m_data_2);
|
|
||||||
__StackLimit = __StackTop - STACK_SIZE;
|
__StackLimit = __StackTop - STACK_SIZE;
|
||||||
PROVIDE(__stack = __StackTop);
|
PROVIDE(__stack = __StackTop);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue