mbed library sources
Dependents: Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more
Superseded
This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.
Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.
If you are looking for a stable and tested release, please import one of the official mbed library releases:
Import librarymbed
The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Diff: common/retarget.cpp
- Revision:
- 482:d9a48e768ce0
- Parent:
- 476:4dac56e9ae44
diff -r ca51ab3eed5a -r d9a48e768ce0 common/retarget.cpp --- a/common/retarget.cpp Thu Feb 26 09:30:08 2015 +0000 +++ b/common/retarget.cpp Fri Feb 27 10:00:08 2015 +0000 @@ -459,6 +459,10 @@ // Linker defined symbol used by _sbrk to indicate where heap should start. extern "C" int __end__; +#if defined(TARGET_CORTEX_A) +extern "C" uint32_t __HeapLimit; +#endif + // Turn off the errno macro and use actual global variable instead. #undef errno extern "C" int errno; @@ -474,6 +478,8 @@ #if defined(TARGET_ARM7) if (new_heap >= stack_ptr) { +#elif defined(TARGET_CORTEX_A) + if (new_heap >= (unsigned char*)&__HeapLimit) { /* __HeapLimit is end of heap section */ #else if (new_heap >= (unsigned char*)__get_MSP()) { #endif