mirror of https://github.com/ARMmbed/mbed-os.git
target_Gigadevice: Set the heap size and limit
parent
e03455a920
commit
25a127e97b
|
@ -110,6 +110,7 @@ SECTIONS
|
||||||
__end__ = .;
|
__end__ = .;
|
||||||
end = __end__;
|
end = __end__;
|
||||||
*(.heap*)
|
*(.heap*)
|
||||||
|
. = ORIGIN(RAM) + LENGTH(RAM) - STACK_SIZE;
|
||||||
__HeapLimit = .;
|
__HeapLimit = .;
|
||||||
} > RAM
|
} > RAM
|
||||||
|
|
||||||
|
|
|
@ -45,15 +45,4 @@
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(__GNUC__) && !defined(__CC_ARM) && !defined(__ARMCC_VERSION) && defined(TWO_RAM_REGIONS))
|
|
||||||
extern uint32_t __StackLimit[];
|
|
||||||
extern uint32_t __StackTop[];
|
|
||||||
extern uint32_t __end__[];
|
|
||||||
extern uint32_t __HeapLimit[];
|
|
||||||
#define HEAP_START ((unsigned char*)__end__)
|
|
||||||
#define HEAP_SIZE ((uint32_t)((uint32_t)__HeapLimit - (uint32_t)HEAP_START))
|
|
||||||
#define ISR_STACK_START ((unsigned char*)__StackLimit)
|
|
||||||
#define ISR_STACK_SIZE ((uint32_t)((uint32_t)__StackTop - (uint32_t)__StackLimit))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* MBED_MBED_RTX_H */
|
#endif /* MBED_MBED_RTX_H */
|
||||||
|
|
Loading…
Reference in New Issue