mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
arch/Kconfig: remove virtual memory allocator dependency from MM_SHM
The dependency should be vice versa; the MM_SHM should depend on the existence of the virtual memory range allocator. Create a new CONFIG flag CONFIG_ARCH_VMA_MAPPING, which will define that there is a virtual memory range allocator. Make MM_SHM select that flag Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Xiang Xiao
parent
fd0195b0d8
commit
70de321de3
@@ -298,7 +298,7 @@ int exec_module(FAR const struct binary_s *binp,
|
||||
|
||||
return (int)pid;
|
||||
|
||||
#if defined(CONFIG_ARCH_ADDRENV) || defined(CONFIG_MM_SHM)
|
||||
#if defined(CONFIG_ARCH_ADDRENV) || defined(CONFIG_ARCH_VMA_MAPPING)
|
||||
errout_with_tcbinit:
|
||||
tcb->cmn.stack_alloc_ptr = NULL;
|
||||
nxsched_release_tcb(&tcb->cmn, TCB_FLAG_TTYPE_TASK);
|
||||
|
||||
Reference in New Issue
Block a user