1
0
Fork 0
forked from nuttx/nuttx-update

binfmt: Remove umm_initialize from elf_load

since umm_try_initialize will do it automatically

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-10-15 02:21:10 +08:00 committed by Gustavo Henrique Nihei
parent 5ff4e33e3f
commit 9e60c33d4d

View file

@ -37,7 +37,6 @@
#include <nuttx/arch.h>
#include <nuttx/addrenv.h>
#include <nuttx/elf.h>
#include <nuttx/mm/mm.h>
#include <nuttx/binfmt/elf.h>
#include "libelf.h"
@ -291,13 +290,6 @@ int elf_load(FAR struct elf_loadinfo_s *loadinfo)
berr("ERROR: elf_addrenv_select() failed: %d\n", ret);
goto errout_with_buffers;
}
#ifdef CONFIG_BUILD_KERNEL
/* Initialize the user heap */
umm_initialize((FAR void *)CONFIG_ARCH_HEAP_VBASE,
up_addrenv_heapsize(&loadinfo->addrenv));
#endif
#endif
/* Load ELF section data into memory */