heap: Add new multi_heap heap implementation to replace FreeRTOS-based tagged heaps

This commit is contained in:
Angus Gratton
2017-04-28 14:08:58 +10:00
committed by Angus Gratton
parent 9b30f66fac
commit 5ee49fd311
21 changed files with 1547 additions and 941 deletions

View File

@@ -329,6 +329,12 @@ static void main_task(void* args)
// Now that the application is about to start, disable boot watchdogs
REG_CLR_BIT(TIMG_WDTCONFIG0_REG(0), TIMG_WDT_FLASHBOOT_MOD_EN_S);
REG_CLR_BIT(RTC_CNTL_WDTCONFIG0_REG, RTC_CNTL_WDT_FLASHBOOT_MOD_EN);
#if !CONFIG_FREERTOS_UNICORE
// Wait for FreeRTOS initialization to finish on APP CPU, before replacing its startup stack
while (port_xSchedulerRunning[1] == 0) {
;
}
#endif
//Enable allocation in region where the startup stacks were located.
heap_alloc_enable_nonos_stack_tag();
app_main();