File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1242,8 +1242,12 @@ extern "C" WEAK void __cxa_pure_virtual(void)
12421242
12431243#if defined(MBED_SPLIT_HEAP)
12441244
1245+ // Default RAM memory used for heap
12451246extern uint32_t __mbed_sbrk_start;
12461247extern uint32_t __mbed_krbs_start;
1248+ /* Additional RAM memory used for heap - please note this
1249+ * address should be lower address then the previous default address
1250+ */
12471251extern uint32_t __mbed_sbrk_start_0;
12481252extern uint32_t __mbed_krbs_start_0;
12491253
@@ -1256,6 +1260,7 @@ extern "C" WEAK caddr_t _sbrk(int incr)
12561260
12571261 /* *
12581262 * If the new address is outside the first region, start allocating from the second region.
1263+ * Jump to second region is done just once, and `static bool once` is used to keep track of that.
12591264 */
12601265 if (once && (new_heap > (uint32_t ) &__mbed_krbs_start_0)) {
12611266 once = false ;
You can’t perform that action at this time.
0 commit comments