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 @@ -740,12 +740,13 @@ extern "C" uint32_t __HeapLimit;
740
740
extern " C" int errno;
741
741
742
742
// Dynamic memory allocation related syscall.
743
- #if defined(TARGET_NUVOTON)
743
+ #if ( defined(TARGET_NUVOTON) || defined(TWO_RAM_REGIONS) )
744
744
745
745
// Overwrite _sbrk() to support two region model (heap and stack are two distinct regions).
746
746
// __wrap__sbrk() is implemented in:
747
747
// TARGET_NUMAKER_PFM_NUC472 targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_GCC_ARM/nuc472_retarget.c
748
748
// TARGET_NUMAKER_PFM_M453 targets/TARGET_NUVOTON/TARGET_M451/TARGET_NUMAKER_PFM_M453/TOOLCHAIN_GCC_ARM/m451_retarget.c
749
+ // TARGET_STM32L4 targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L4/l4_retarget.c
749
750
extern " C" void *__wrap__sbrk (int incr);
750
751
extern " C" caddr_t _sbrk (int incr) {
751
752
return (caddr_t ) __wrap__sbrk (incr);
You can’t perform that action at this time.
0 commit comments