File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1053,12 +1053,13 @@ extern "C" uint32_t __HeapLimit;
1053
1053
extern " C" int errno;
1054
1054
1055
1055
// Dynamic memory allocation related syscall.
1056
- #if defined(TARGET_NUVOTON)
1056
+ #if ( defined(TARGET_NUVOTON) || defined(TWO_RAM_REGIONS) )
1057
1057
1058
1058
// Overwrite _sbrk() to support two region model (heap and stack are two distinct regions).
1059
1059
// __wrap__sbrk() is implemented in:
1060
1060
// TARGET_NUMAKER_PFM_NUC472 targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_GCC_ARM/nuc472_retarget.c
1061
1061
// TARGET_NUMAKER_PFM_M453 targets/TARGET_NUVOTON/TARGET_M451/TARGET_NUMAKER_PFM_M453/TOOLCHAIN_GCC_ARM/m451_retarget.c
1062
+ // TARGET_STM32L4 targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L4/l4_retarget.c
1062
1063
extern " C" void *__wrap__sbrk (int incr);
1063
1064
extern " C" caddr_t _sbrk (int incr) {
1064
1065
return (caddr_t ) __wrap__sbrk (incr);
You can’t perform that action at this time.
0 commit comments