mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
mm/shm: Switch to use process' common virtual memory region allocator
- Also remove the nuttx private shm.h file nuttx/mm/shm.h, which became redundant - Also remove the gran allocator initialization/release in binfmt since common vpage allocator is initialized in group_create/group_leave Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Xiang Xiao
parent
2236facca9
commit
a2a10c87e3
@@ -34,7 +34,6 @@
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/sched.h>
|
||||
#include <nuttx/mm/shm.h>
|
||||
#include <nuttx/binfmt/binfmt.h>
|
||||
|
||||
#include "binfmt.h"
|
||||
@@ -227,17 +226,6 @@ int exec_module(FAR const struct binary_s *binp,
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MM_SHM
|
||||
/* Initialize the shared memory virtual page allocator */
|
||||
|
||||
ret = shm_group_initialize(tcb->cmn.group);
|
||||
if (ret < 0)
|
||||
{
|
||||
berr("ERROR: shm_group_initialize() failed: %d\n", ret);
|
||||
goto errout_with_tcbinit;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PIC
|
||||
/* Add the D-Space address as the PIC base address. By convention, this
|
||||
* must be the first allocated address space.
|
||||
|
||||
Reference in New Issue
Block a user