TLSF: fix the patch for tlsf_check function in ROM

tlsf_check in the patch was not called because the the TLSF functions
table in ROM was still pointing to the ROM implementation.
This commit is contained in:
Omar Chebib
2022-08-29 19:46:49 +08:00
committed by Guillaume Souchere
parent 860232bdaf
commit 2e897c2e74
5 changed files with 103 additions and 23 deletions

View File

@@ -359,10 +359,10 @@ multi_heap_handle_t multi_heap_register(void *start, size_t size)
memset(start, FREE_FILL_PATTERN, size);
}
#endif
#ifdef CONFIG_HEAP_TLSF_USE_ROM_IMPL
#if CONFIG_HEAP_TLSF_USE_ROM_IMPL
tlsf_poison_fill_pfunc_set(multi_heap_internal_poison_fill_region);
tlsf_poison_check_pfunc_set(multi_heap_internal_check_block_poisoning);
#endif
#endif // CONFIG_HEAP_TLSF_USE_ROM_IMPL
return multi_heap_register_impl(start, size);
}