mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
Revert "binfmt/libelf/libelf_load.c: Remove the guard(CONFIG_BUILD_KERNEL) for umm_initialize()"
This commit has to be reverted because it causes errors in build testing.
This reverts commit b9c7a9a18f
.
This commit is contained in:
parent
a77c073797
commit
c17145e550
1 changed files with 2 additions and 0 deletions
|
@ -304,10 +304,12 @@ int elf_load(FAR struct elf_loadinfo_s *loadinfo)
|
|||
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…
Reference in a new issue