MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / esp_elf_deinit

Function esp_elf_deinit

Libraries/elf_loader/src/esp_elf.c:523–545  ·  view source on GitHub ↗

* @brief Deinitialize ELF object. * * @param elf - ELF object pointer * * @return None */

Source from the content-addressed store, hash-verified

521 * @return None
522 */
523void esp_elf_deinit(esp_elf_t *elf)
524{
525#if CONFIG_ELF_LOADER_BUS_ADDRESS_MIRROR
526 if (elf->pdata) {
527 esp_elf_free(elf->pdata);
528 elf->pdata = NULL;
529 }
530
531 if (elf->ptext) {
532 esp_elf_free(elf->ptext);
533 elf->ptext = NULL;
534 }
535#else
536 if (elf->psegment) {
537 esp_elf_free(elf->ptext);
538 elf->ptext = NULL;
539 }
540#endif
541
542#ifdef CONFIG_ELF_LOADER_SET_MMU
543 esp_elf_arch_deinit_mmu(elf);
544#endif
545}
546
547/**
548 * @brief Print header description information of ELF.

Callers 2

startElfMethod · 0.85
stopElfMethod · 0.85

Calls 2

esp_elf_freeFunction · 0.85
esp_elf_arch_deinit_mmuFunction · 0.85

Tested by

no test coverage detected