[PATCH v2] Mailbox : Extending functionality

2016-08-26 Thread Mudit Jain
Adding functionality to get board serial, power state & clock rate --- c/src/lib/libbsp/arm/raspberrypi/include/vc.h | 17 + c/src/lib/libbsp/arm/raspberrypi/misc/vc.c | 78 ++ c/src/lib/libbsp/arm/raspberrypi/misc/vc_defines.h | 35 ++ 3 files changed,

[PATCH 1/2] posix: zero out memory correctly for shm objects

2016-08-26 Thread Gedare Bloom
--- cpukit/posix/src/shmheap.c| 27 +++ cpukit/posix/src/shmwkspace.c | 4 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/cpukit/posix/src/shmheap.c b/cpukit/posix/src/shmheap.c index 4f6f105..5896445 100644 --- a/cpukit/posix/src/shmheap.c +++ b/

Re: [PATCH] posix: add shm_unlink and close, fstat, read for shm objects

2016-08-26 Thread Gedare Bloom
I'm contemplating adapting the mmap support from https://git.rtems.org/chrisj/rtl.git/tree/mmap.c This patch adds most of the plumbing necessary so that the libc calls used there should work correctly. So far that code implicitly only supports MAP_PRIVATE. On Fri, Aug 26, 2016 at 4:17 PM, Gedare

Re: [PATCH 2/2] posix: simplify paths and check errors in shm_open

2016-08-26 Thread Gedare Bloom
I have added some error checks for the heap-backed shm implementation, and simplified the control flow to get all error checking done before allocating memory. I will eventually send a v2 patch series, but I wanted to show these self-contained fixes. I am looking into mmap support presently. On Fr