Module: xenomai-3
Branch: next
Commit: 7f4f2c8f97752756ae6e72dfb44884b1e1c02b81
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=7f4f2c8f97752756ae6e72dfb44884b1e1c02b81

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Jun  1 17:31:28 2015 +0200

vxworks/queue: fix for remote requests (pshared)

---

 lib/vxworks/msgQLib.c |    4 ++--
 lib/vxworks/msgQLib.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/vxworks/msgQLib.c b/lib/vxworks/msgQLib.c
index 087dbf6..aa0b71c 100644
--- a/lib/vxworks/msgQLib.c
+++ b/lib/vxworks/msgQLib.c
@@ -219,7 +219,7 @@ retry:
                timespec = NULL;
 
        wait = threadobj_prepare_wait(struct wind_queue_wait);
-       wait->ptr = buffer;
+       wait->ptr = __moff(buffer);
        wait->size = maxNBytes;
 
        ret = syncobj_wait_grant(&mq->sobj, timespec, &syns);
@@ -285,7 +285,7 @@ STATUS msgQSend(MSG_Q_ID msgQId, const char *buffer, UINT 
bytes,
                if (bytes > maxbytes)
                        bytes = maxbytes;
                if (bytes > 0)
-                       memcpy(wait->ptr, buffer, bytes);
+                       memcpy(__mptr(wait->ptr), buffer, bytes);
                wait->size = bytes;
                goto done;
        }
diff --git a/lib/vxworks/msgQLib.h b/lib/vxworks/msgQLib.h
index 2c31268..f6a1749 100644
--- a/lib/vxworks/msgQLib.h
+++ b/lib/vxworks/msgQLib.h
@@ -39,7 +39,7 @@ struct wind_mq {
 
 struct wind_queue_wait {
        size_t size;
-       void *ptr;
+       dref_type(void *) ptr;
 };
 
 #endif /* _VXWORKS_MSGQLIB_H */


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to