9
0
Fork 0
Commit Graph

147 Commits

Author SHA1 Message Date
Gregory Nutt bcfcb485b9 Fixes some issues found by the PX4 team using Coverity. From Pavel Krienko 2015-01-19 13:01:20 -06:00
Gregory Nutt f28eff61ae More fixes to problems noted by cppcheck. Some are kind of risky; some are real bugs. 2014-11-25 13:46:14 -06:00
Gregory Nutt 4f011a96cf If the INTR granule allocator mode is enabled, there is no
semaphore to destroy.  From Lorenz Meier.
2014-11-12 06:56:32 -06:00
Gregory Nutt 0d4dcd48de Fix a typo in a Kconfig file 2014-09-27 16:11:48 -06:00
Gregory Nutt afb3f6070f Move include/nuttx/mm.h to include/nuttx/mm/mm.h 2014-09-24 07:29:09 -06:00
Gregory Nutt b09d57f7fb Move include/nuttx/shm.h to include/nuttx/mm/shm.h 2014-09-24 07:05:02 -06:00
Gregory Nutt 261eb94ddc Move include/nuttx/gran.h to include/nuttx/mm/gran.h 2014-09-24 06:55:26 -06:00
Gregory Nutt 82e16433fc Completes the implemenation of the core shared memory logic: shmget(), shmctl(), shmat(), and shmdt(). This is still some unfinish platform-specific code that needs to be done before we can begin testing. 2014-09-23 16:07:12 -06:00
Gregory Nutt 435906992e Remove executable mode 2014-09-23 16:06:22 -06:00
Gregory Nutt 2d0f921c0d Add interfaces to support un-initializing a granule allocator. 2014-09-23 16:05:32 -06:00
Gregory Nutt bda6baf012 Add support for a per-process virtual page allocator. This is a new member of the task_group_s structure. The allocaor must be initialized when a new user process is started and uninitialize when the process group is finally destroyed. It is used by shmat() and shmdt() to pick the virtual address onto which to map the shared physical memory. 2014-09-23 16:04:39 -06:00
Gregory Nutt f78a387b5c Cosmetic 2014-09-23 16:03:52 -06:00
Gregory Nutt 9218ceb2a5 Add interfaces to support un-initializing a granule allocator. 2014-09-23 15:50:45 -06:00
Gregory Nutt 3edb44ada7 Flesh out shmctl() logic 2014-09-23 11:41:05 -06:00
Gregory Nutt c163691f94 Flesh out basic logic for shmget() 2014-09-23 10:42:18 -06:00
Gregory Nutt 0ab7598b04 Add shared memory initializatin logic 2014-09-23 08:46:31 -06:00
Gregory Nutt 0f3f2d5095 Add README files and configuration support for the shared memory logic 2014-09-23 07:11:47 -06:00
Gregory Nutt 43563c78b8 Add the build framework and skeleton files for the shared memory feature (no logic yet provided) 2014-09-22 14:53:56 -06:00
Gregory Nutt 189c7ede6f Again I forget to add a file needed in a previous commit 2014-09-22 10:59:00 -06:00
Gregory Nutt 5eeb577e1f Add a home for forthcoming shared memory logic 2014-09-22 10:58:27 -06:00
Gregory Nutt dd81d6c508 Move core heap allocator logic from mm/. to mm/mm_heap/. 2014-09-22 10:53:50 -06:00
Gregory Nutt fcf6320a50 Move the user heap allocator front-end from mm/. to mm/umm_heap/. 2014-09-22 10:48:58 -06:00
Gregory Nutt 0d525d58bb Forgot to add a file in the last commit 2014-09-22 10:43:46 -06:00
Gregory Nutt 19fa0bdcc2 Move the kernel heap allocator front-end from mm/. to mm/kmm_heap/. 2014-09-22 10:42:26 -06:00
Gregory Nutt 2f5f0694b8 Move granuale allocator and page allocator from mm/. to mm/mm_gran/. 2014-09-22 10:33:23 -06:00
Gregory Nutt e6e9bf0ecc More changes so that the KNSH build survives the changes needed for the ELF build 2014-09-16 15:55:21 -06:00
Gregory Nutt e6416cf311 First round of changes to get the ELF configuration building again 2014-09-16 15:37:05 -06:00
Gregory Nutt 2e9c520277 Fix a typo in use of a configuration setting 2014-09-13 12:24:08 -06:00
Gregory Nutt 7b3a98b2ec Add logic to initialize the per-process user heap when each user process is started 2014-09-10 15:55:36 -06:00
Gregory Nutt 4c448bf322 Granule allocator initialization uses wrong allocator to setting aside kernel memory 2014-09-03 13:46:05 -06:00
Gregory Nutt 021cf46544 I love/hate conditional compilation 2014-09-03 11:43:23 -06:00
Gregory Nutt 08295bf524 Fix several compile errors for logic added for CONFIG_BUILD_KERNEL, but which cause problems for other configurations 2014-09-03 09:21:59 -06:00
Gregory Nutt a608530a1a Add support for delivery of use-mode signals in the kernel build. 2014-09-02 15:58:14 -06:00
Gregory Nutt 70364682c1 Restructuring of build to allow use of use-space allocators by kernel logic in the kernel build. 2014-09-02 11:22:09 -06:00
Gregory Nutt 0c224f7e3d Space at the beginning of the process data space is now reserved for user heap management structures. In the kernel build mode, these heap structures are shared between the kernel and use code in order to allocate user-specific data. 2014-09-02 11:21:23 -06:00
Gregory Nutt f86563aa4b sbrk() need to initialized the memory manager on the first call 2014-09-02 08:05:11 -06:00
Gregory Nutt f23b744ac0 Completes the implementation of sbrk() (untested) 2014-09-01 10:46:51 -06:00
Gregory Nutt 91bffa9cb1 Initial implementatino of sbrk() 2014-09-01 07:37:54 -06:00
Gregory Nutt f8d20db23e Reanem kzalloc to kmm_zalloc for consistency 2014-08-31 17:34:44 -06:00
Gregory Nutt 39c90ce1ce Rename kmalloc to kmm_malloc for consistency 2014-08-31 17:26:36 -06:00
Gregory Nutt 7482b7ad0f Rename kfree to kmm_free for consistency with other naming conventions 2014-08-31 17:04:02 -06:00
Gregory Nutt 81baf55fd8 Rename kmemalign to kmm_memalign and krealloc to kmm_realooc for consistency with other naming 2014-08-31 15:27:37 -06:00
Gregory Nutt bdf39bd497 Rename kmemalign to kmm_memalign for consitency with other naming 2014-08-31 14:57:31 -06:00
Gregory Nutt aadd8ebfc6 Add low-level memory management hooks that will be needed to support brk() and sbrk() 2014-08-31 14:42:45 -06:00
Gregory Nutt 085bc3e78c mm: Break up mm_user.c and mm_kernel.c into separate files for better symmetry 2014-08-31 11:46:47 -06:00
Gregory Nutt d646bcf4f5 Remove CONFIG_MM_MULTIHEAP. Non-multiheap operation is no longer supported 2014-08-31 10:54:55 -06:00
Gregory Nutt 2a8958c4ef Need to condition out standard allocators in kernel build. More to be done 2014-08-31 08:10:15 -06:00
Gregory Nutt 64892e44f2 Rename CONFIG_NUTTX_KERNEL to CONFIG_BUILD_PROTECTED; Partially integrate new CONFIG_BUILD_KERNEL 2014-08-29 14:47:22 -06:00
Gregory Nutt f42160a090 Bugfixes.. still integrating SAMA5 ELF with address environment 2014-08-25 15:27:58 -06:00
Gregory Nutt 28928fed5e Cortex-A/SAMA5 address environment support is code complete (untested) 2014-08-25 11:18:32 -06:00