mirror of
https://github.com/apache/nuttx.git
synced 2026-08-31 14:13:04 +00:00
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:
parent
0275e527ec
commit
2ce4b8085b
1 changed files with 0 additions and 8 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue