Heap init code improvements and updates #8458
Merged
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Moved secondary heap init code to flash.
General updates to
umm_init
call path and defines to better align with upstream. Name changes:UMM_INIT_HEAP
withUMM_CHECK_INITIALIZED
,umm_init_stage_2
with_umm_init_heap
, andumm_init_common
withumm_init_heap
.Add file
umm_cfgport
.h to hold port-specific values. Stay focused on heap initialization only move-related defines.Improved comments.
Created a wrapper function for running pre-SDK code from flash.
Updated
hwdt_app_entry
to use it.Update
umm_init
with the option to run from ICACHE.Added build defineUMM_INIT_USE_ICACHE
to moveumm_init
call path to flash.Added build define
UMM_INIT_USE_IRAM
to moveumm_init
call path back to IRAM.Using ICACHE frees up 160 bytes of IRAM at a cost of 208 bytes of IROM.
Defaults to no change,umm_init
call path will be in IRAM.Defaults with
umm_init
call path in ICACHE.