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)
1242
1242
1243
1243
#if defined(MBED_SPLIT_HEAP)
1244
1244
1245
+ // Default RAM memory used for heap
1245
1246
extern uint32_t __mbed_sbrk_start;
1246
1247
extern 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
+ */
1247
1251
extern uint32_t __mbed_sbrk_start_0;
1248
1252
extern uint32_t __mbed_krbs_start_0;
1249
1253
@@ -1256,6 +1260,7 @@ extern "C" WEAK caddr_t _sbrk(int incr)
1256
1260
1257
1261
/* *
1258
1262
* 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.
1259
1264
*/
1260
1265
if (once && (new_heap > (uint32_t ) &__mbed_krbs_start_0)) {
1261
1266
once = false ;
You can’t perform that action at this time.
0 commit comments