On Thu, 2006-10-12 at 17:40 -0700, Chau, Ngaiman wrote: > Question 1) > > > The Satch runs ok except the size return from the msqQRecive() > is > > > always -1, not sure why? (vxwork api size return should be the > number of bytes >
There was a subtle bug causing spurious argument shadowing when attempting to pass the result code back to user-space. The following patch fixes the issue for ppc. All archs need to be fixed, and have been updated accordingly, both in the maintenance and development branch. Thanks for reporting this issue. --- include/asm-powerpc/syscall.h (revision 1719) +++ include/asm-powerpc/syscall.h (working copy) @@ -54,9 +54,9 @@ have checked for bad range before using the copy macros, so we should not have to care about the result. */ #define __xn_copy_from_user(task,dstP,srcP,n) \ - ({ int err = __copy_from_user_inatomic(dstP,srcP,n); err; }) + ({ int __err__ = __copy_from_user_inatomic(dstP,srcP,n); __err__; }) #define __xn_copy_to_user(task,dstP,srcP,n) \ - ({ int err = __copy_to_user_inatomic(dstP,srcP,n); err; }) + ({ int __err__ = __copy_to_user_inatomic(dstP,srcP,n); __err__; }) #define __xn_put_user(task,src,dstP) __put_user(src,dstP) #define __xn_get_user(task,dst,srcP) __get_user(dst,srcP) #define __xn_strncpy_from_user(task,dstP,srcP,n) __strncpy_from_user(dstP,srcP,n) > > received) > > > > > Question 2) > > > I try and proceed to add the Koan.c file to the Makefile, > however, > > > it runs into compilation error even thought I add the main() and > > > RootTask as in Satch.c does. koan.c won't run in this context. It was aimed at demonstrating the capabilities of the UVM, which has been deprecated recently. Basically, the issue is that you don't have access to kernel hooks such as tickAnnounce() and friends in mere user-space context with a direct syscall interface. This file will be removed from the trunk/ shortly. -- Philippe. _______________________________________________ Xenomai-core mailing list Xenomai-core@gna.org https://mail.gna.org/listinfo/xenomai-core