mirror of https://github.com/ARMmbed/mbed-os.git
Add TOOLCHAIN_GCC_CR support
parent
6c0a0e144e
commit
362bb0e94d
|
@ -563,7 +563,7 @@ extern "C" void __iar_argc_argv() {
|
|||
// Provide implementation of _sbrk (low-level dynamic memory allocation
|
||||
// routine) for GCC_ARM which compares new heap pointer with MSP instead of
|
||||
// SP. This make it compatible with RTX RTOS thread stacks.
|
||||
#if defined(TOOLCHAIN_GCC_ARM)
|
||||
#if defined(TOOLCHAIN_GCC_ARM) || defined(TOOLCHAIN_GCC_CR)
|
||||
// Linker defined symbol used by _sbrk to indicate where heap should start.
|
||||
extern "C" int __end__;
|
||||
|
||||
|
@ -614,7 +614,7 @@ extern "C" caddr_t _sbrk(int incr) {
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if defined TOOLCHAIN_GCC_ARM
|
||||
#if defined(TOOLCHAIN_GCC_ARM) || defined(TOOLCHAIN_GCC_CR)
|
||||
extern "C" void _exit(int return_code) {
|
||||
#else
|
||||
namespace std {
|
||||
|
@ -638,7 +638,7 @@ extern "C" void exit(int return_code) {
|
|||
while (1);
|
||||
}
|
||||
|
||||
#if !defined(TOOLCHAIN_GCC_ARM)
|
||||
#if !defined(TOOLCHAIN_GCC_ARM) && !defined(TOOLCHAIN_GCC_CR)
|
||||
} //namespace std
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue