[Xenomai-git] Philippe Gerum : cobalt/arm: upgrade I-pipe support

2015-01-12 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: 19f7ec147ef21fc2149a8afd405877d241bf43ac
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=19f7ec147ef21fc2149a8afd405877d241bf43ac

Author: Philippe Gerum r...@xenomai.org
Date:   Tue Jan  6 17:37:35 2015 +0100

cobalt/arm: upgrade I-pipe support

---

 ...-arm-5.patch = ipipe-core-3.10.32-arm-7.patch} | 1174 +-
 ...-arm-4.patch = ipipe-core-3.14.17-arm-6.patch} | 1092 +-
 .../arch/arm/patches/ipipe-core-3.16-arm-1.patch   |22403 
 3 files changed, 23788 insertions(+), 881 deletions(-)

Diff:   
http://git.xenomai.org/?p=xenomai-3.git;a=commitdiff;h=19f7ec147ef21fc2149a8afd405877d241bf43ac

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


[Xenomai-git] Philippe Gerum : copperplate: add configuration tunable for registry moint point

2015-01-12 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: 5b22dcb266d00ed165bdf373d70323171828866d
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=5b22dcb266d00ed165bdf373d70323171828866d

Author: Philippe Gerum r...@xenomai.org
Date:   Thu Jan  1 18:15:36 2015 +0100

copperplate: add configuration tunable for registry moint point

--enable-registry[=/registry-mount-point]

Defaults to /mnt/xenomai.

---

 configure |   25 +-
 configure.ac  |7 +-
 include/xeno_config.h.in  |3 +
 lib/copperplate/init.c|8 +-
 lib/copperplate/internal.h|4 +-
 testsuite/smokey/Makefile.in  |6 +-
 testsuite/smokey/sigdebug/Makefile.in |  646 +
 utils/Makefile.in |4 +-
 utils/net/Makefile.in |  845 +
 9 files changed, 1531 insertions(+), 17 deletions(-)

diff --git a/configure b/configure
index a9c7938..04819c9 100755
--- a/configure
+++ b/configure
@@ -12933,12 +12933,12 @@ if test ${enable_debug+set} = set; then :
debug_symbols=y
;;
y | yes | partial)
-   debug_mode=partial
-   debug_symbols=y
+   debug_mode=partial
+   debug_symbols=y
;;
full)
debug_mode=full
-   debug_symbols=y
+   debug_symbols=y
;;
n | no)
debug_mode=
@@ -13091,18 +13091,20 @@ fi
 
 
 use_registry=
+registry_root=
 { $as_echo $as_me:${as_lineno-$LINENO}: checking whether the registry should 
be enabled 5
 $as_echo_n checking whether the registry should be enabled...  6; }
 # Check whether --enable-registry was given.
 if test ${enable_registry+set} = set; then :
   enableval=$enable_registry; case $enableval in
-   y | yes) use_registry=y ;;
+   y | yes) use_registry=y; registry_root=/mnt/xenomai ;;
+   /*) use_registry=y; registry_root=$enableval ;;
*) unset use_registry ;;
esac
 fi
 
-{ $as_echo $as_me:${as_lineno-$LINENO}: result: ${use_registry:-no} 5
-$as_echo ${use_registry:-no} 6; }
+{ $as_echo $as_me:${as_lineno-$LINENO}: result: 
${use_registry:-no}${registry_root:+, mounted on ${registry_root}} 5
+$as_echo ${use_registry:-no}${registry_root:+, mounted on ${registry_root}} 
6; }
 
 if test x$use_registry = xy; then
 
@@ -13320,6 +13322,11 @@ fi
 
 $as_echo #define CONFIG_XENO_REGISTRY 1 confdefs.h
 
+
+cat confdefs.h _ACEOF
+#define CONFIG_XENO_REGISTRY_ROOT $registry_root
+_ACEOF
+
 fi
  if test x$use_registry = xy; then
   XENO_REGISTRY_TRUE=
@@ -14342,7 +14349,7 @@ fi
 
 
 
-ac_config_files=$ac_config_files Makefile config/Makefile scripts/Makefile 
scripts/xeno-config:scripts/xeno-config-$rtcore_type.in scripts/xeno 
lib/Makefile lib/boilerplate/Makefile lib/cobalt/Makefile 
lib/cobalt/arch/Makefile lib/cobalt/arch/arm/Makefile 
lib/cobalt/arch/arm/include/Makefile lib/cobalt/arch/arm/include/asm/Makefile 
lib/cobalt/arch/arm/include/asm/xenomai/Makefile 
lib/cobalt/arch/powerpc/Makefile lib/cobalt/arch/powerpc/include/Makefile 
lib/cobalt/arch/powerpc/include/asm/Makefile 
lib/cobalt/arch/powerpc/include/asm/xenomai/Makefile 
lib/cobalt/arch/blackfin/Makefile lib/cobalt/arch/blackfin/include/Makefile 
lib/cobalt/arch/blackfin/include/asm/Makefile 
lib/cobalt/arch/blackfin/include/asm/xenomai/Makefile 
lib/cobalt/arch/x86/Makefile lib/cobalt/arch/x86/include/Makefile 
lib/cobalt/arch/x86/include/asm/Makefile 
lib/cobalt/arch/x86/include/asm/xenomai/Makefile lib/cobalt/arch/nios2/Makefile 
lib/cobalt/arch/nios2/include/Makefile lib/cobalt/arch/nios2/include/asm/Makef
 ile lib/cobalt/arch/nios2/include/asm/xenomai/Makefile 
lib/cobalt/arch/sh/Makefile lib/cobalt/arch/sh/include/Makefile 
lib/cobalt/arch/sh/include/asm/Makefile 
lib/cobalt/arch/sh/include/asm/xenomai/Makefile lib/copperplate/Makefile 
lib/copperplate/regd/Makefile lib/alchemy/Makefile lib/vxworks/Makefile 
lib/psos/Makefile lib/analogy/Makefile lib/smokey/Makefile lib/trank/Makefile 
testsuite/Makefile testsuite/latency/Makefile testsuite/switchtest/Makefile 
testsuite/smokey/Makefile testsuite/smokey/arith/Makefile 
testsuite/smokey/sched-quota/Makefile testsuite/smokey/sched-tp/Makefile 
testsuite/smokey/rtdm/Makefile testsuite/smokey/vdso-access/Makefile 
testsuite/smokey/cond-torture/Makefile testsuite/smokey/mutex-torture/Makefile 
testsuite/smokey/xddp/Makefile testsuite/smokey/iddp/Makefile 
testsuite/smokey/bufp/Makefile testsuite/smokey/fork-exec/Makefile 
testsuite/clocktest/Makefile testsuite/xeno-test/Makefile 
testsuite/regression/Makefile testsuite/regression/posix/Makefile utils/M
 akefile utils/can/Makefile utils/analogy/Makefile utils/ps/Makefile 
utils/slackspot/Makefile utils/autotune/Makefile demo/Makefile 
demo/posix/Makefile demo/posix/cobalt/Makefile demo/alchemy/Makefile 
demo/alchemy/cobalt/Makefile include/Makefile 

[Xenomai-git] Philippe Gerum : cobalt/blackfin: upgrade I-pipe support

2015-01-12 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: f86a5dd581157b23ab424c3df7d9a146abf56549
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=f86a5dd581157b23ab424c3df7d9a146abf56549

Author: Philippe Gerum r...@xenomai.org
Date:   Tue Jan  6 17:39:11 2015 +0100

cobalt/blackfin: upgrade I-pipe support

---

 ...3.patch = ipipe-core-3.10.32-blackfin-4.patch} |  188 +-
 ...4.patch = ipipe-core-3.14.17-blackfin-5.patch} |  290 +-
 .../patches/ipipe-core-3.16-blackfin-1.patch   |11711 
 3 files changed, 12086 insertions(+), 103 deletions(-)

Diff:   
http://git.xenomai.org/?p=xenomai-3.git;a=commitdiff;h=f86a5dd581157b23ab424c3df7d9a146abf56549

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


[Xenomai-git] Jan Kiszka : sysregd: Adjust access rights of mount point directories

2015-01-12 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: 2bb1a20f910dd8e0d19ba99aa4d71c8ba257651e
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=2bb1a20f910dd8e0d19ba99aa4d71c8ba257651e

Author: Jan Kiszka jan.kis...@siemens.com
Date:   Wed Jan  7 18:23:32 2015 +0100

sysregd: Adjust access rights of mount point directories

This enables sharing the registry across users of the same group the
registry root is assigned to. Such an assignment can be done manually or
with the help of a to-be-added multi-user preparation script.

Signed-off-by: Jan Kiszka jan.kis...@siemens.com

---

 lib/copperplate/regd/regd.c |6 ++
 1 file changed, 6 insertions(+)

diff --git a/lib/copperplate/regd/regd.c b/lib/copperplate/regd/regd.c
index 637bd30..3f7f378 100644
--- a/lib/copperplate/regd/regd.c
+++ b/lib/copperplate/regd/regd.c
@@ -147,6 +147,12 @@ static int create_directory_recursive(const char *dir) /* 
absolute path */
p = strtok(NULL, /);
}
 
+   if (shared) {
+   ret = chmod(dir, 0775 | S_ISGID);
+   if (ret)
+   return -errno;
+   }
+
free(s);
chdir(rootdir); /* Back to rootdir */
 


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


[Xenomai-git] Jan Kiszka : sysregd: Remove session rootdir on cleanup

2015-01-12 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: c78ad317e17c14f828f4f5daba41df3805d3bb61
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=c78ad317e17c14f828f4f5daba41df3805d3bb61

Author: Jan Kiszka jan.kis...@siemens.com
Date:   Wed Jan  7 18:00:38 2015 +0100

sysregd: Remove session rootdir on cleanup

When the session-managing sysreg daemon terminates, try to clean up the
session directory as well.

Signed-off-by: Jan Kiszka jan.kis...@siemens.com

---

 lib/copperplate/regd/regd.c |1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/copperplate/regd/regd.c b/lib/copperplate/regd/regd.c
index 3f7f378..8a66290 100644
--- a/lib/copperplate/regd/regd.c
+++ b/lib/copperplate/regd/regd.c
@@ -283,6 +283,7 @@ static void delete_system_fs(void)
 {
umount2(sysroot, MNT_DETACH);
rmdir(sysroot);
+   rmdir(rootdir);
 }
 
 static void handle_requests(void)


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


[Xenomai-git] Philippe Gerum : cobalt/powerpc: upgrade I-pipe support

2015-01-12 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: 3b317c44c7803611412af0c524d46d5d50343a09
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=3b317c44c7803611412af0c524d46d5d50343a09

Author: Philippe Gerum r...@xenomai.org
Date:   Tue Jan  6 17:39:34 2015 +0100

cobalt/powerpc: upgrade I-pipe support

---

 ...-4.patch = ipipe-core-3.10.32-powerpc-5.patch} |  188 +-
 ...-4.patch = ipipe-core-3.14.17-powerpc-6.patch} | 1281 +-
 .../patches/ipipe-core-3.16-powerpc-1.patch|15473 
 3 files changed, 16618 insertions(+), 324 deletions(-)

Diff:   
http://git.xenomai.org/?p=xenomai-3.git;a=commitdiff;h=3b317c44c7803611412af0c524d46d5d50343a09

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


[Xenomai-git] Jan Kiszka : lib/cobalt: Fix ordering of fork handler

2015-01-12 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: 7e49bffaeba00fbcbd19daf6c87128581b08d1f6
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=7e49bffaeba00fbcbd19daf6c87128581b08d1f6

Author: Jan Kiszka jan.kis...@siemens.com
Date:   Mon Jan  5 15:48:14 2015 +0100

lib/cobalt: Fix ordering of fork handler

Currently, fork handlers run in more or less random order after
successive forks because pthread_atfork is re-executed for some
handlers. This can cause the heap being unmapped after __init_cobalt was
executed, leaving cobalt_current_window in an invalid state. One result
of this is a crashing sysregd when run as unprivileged user, thus when
it forked fusermount from the forked daemon.

Fix the issue by performing the after-fork work centrally, in a
well-defined order.

Signed-off-by: Jan Kiszka jan.kis...@siemens.com

---

 lib/cobalt/current.c  |8 ++--
 lib/cobalt/current.h  |2 ++
 lib/cobalt/init.c |   29 +++--
 lib/cobalt/internal.h |2 ++
 lib/cobalt/printf.c   |3 +--
 lib/cobalt/umm.c  |4 +---
 lib/cobalt/umm.h  |2 ++
 7 files changed, 29 insertions(+), 21 deletions(-)

diff --git a/lib/cobalt/current.c b/lib/cobalt/current.c
index b7d5b6e..a8bc330 100644
--- a/lib/cobalt/current.c
+++ b/lib/cobalt/current.c
@@ -26,8 +26,6 @@
 
 static DEFINE_PRIVATE_LIST(tsd_hooks);
 
-static void child_fork_handler(void);
-
 #ifdef HAVE_TLS
 
 __thread __attribute__ ((tls_model (CONFIG_XENO_TLS_MODEL)))
@@ -53,7 +51,7 @@ static inline void __cobalt_clear_tsd(void)
 
 static void init_current_keys(void)
 {
-   pthread_atfork(NULL, NULL, child_fork_handler);
+   cobalt_current = XN_NO_HANDLE;
 }
 
 #else /* !HAVE_TLS */
@@ -85,8 +83,6 @@ static void init_current_keys(void)
if (err)
goto error_exit;
 
-   pthread_atfork(NULL, NULL, child_fork_handler);
-
err = pthread_key_create(cobalt_current_window_key, NULL);
if (err) {
  error_exit:
@@ -97,7 +93,7 @@ static void init_current_keys(void)
 
 #endif /* !HAVE_TLS */
 
-static void child_fork_handler(void)
+void cobalt_clear_tsd(void)
 {
struct cobalt_tsd_hook *th;
 
diff --git a/lib/cobalt/current.h b/lib/cobalt/current.h
index 3e28b83..069ee1c 100644
--- a/lib/cobalt/current.h
+++ b/lib/cobalt/current.h
@@ -93,4 +93,6 @@ void cobalt_init_current_keys(void);
 
 void cobalt_set_tsd(__u32 u_winoff);
 
+void cobalt_clear_tsd(void);
+
 #endif /* _LIB_COBALT_CURRENT_H */
diff --git a/lib/cobalt/init.c b/lib/cobalt/init.c
index dfe1150..b7c8f76 100644
--- a/lib/cobalt/init.c
+++ b/lib/cobalt/init.c
@@ -107,6 +107,24 @@ static void low_init(void)
 
 static void __init_cobalt(void);
 
+static void cobalt_fork_handler(void)
+{
+   cobalt_unmap_umm();
+   cobalt_clear_tsd();
+   cobalt_print_init_atfork();
+#ifdef HAVE_PTHREAD_ATFORK
+   /*
+* Upon fork, in case the parent required init deferral, this
+* is the forkee's responsibility to call __libcobalt_init()
+* for bootstrapping the services the same way. On systems
+* with no fork() support, clients are not supposed to, well,
+* fork in the first place, so we don't take any provision for
+* this event.
+*/
+   __init_cobalt();
+#endif
+}
+
 void __libcobalt_init(void)
 {
struct sigaction sa;
@@ -118,21 +136,12 @@ void __libcobalt_init(void)
sa.sa_flags = SA_SIGINFO;
sigaction(SIGDEBUG, sa, __cobalt_orig_sigdebug);
 
-#ifdef HAVE_PTHREAD_ATFORK
/*
-* Upon fork, in case the parent required init deferral, this
-* is the forkee's responsibility to call __libcobalt_init()
-* for bootstrapping the services the same way. On systems
-* with no fork() support, clients are not supposed to, well,
-* fork in the first place, so we don't take any provision for
-* this event.
-*
 * NOTE: a placeholder for pthread_atfork() may return an
 * error status with uClibc, so we don't check the return
 * value on purpose.
 */
-   pthread_atfork(NULL, NULL, __init_cobalt);
-#endif
+   pthread_atfork(NULL, NULL, cobalt_fork_handler);
 
if (sizeof(struct cobalt_mutex_shadow)  sizeof(pthread_mutex_t)) {
report_error(sizeof(pthread_mutex_t): %d 
diff --git a/lib/cobalt/internal.h b/lib/cobalt/internal.h
index c7350be..e126480 100644
--- a/lib/cobalt/internal.h
+++ b/lib/cobalt/internal.h
@@ -45,6 +45,8 @@ void cobalt_thread_init(void);
 
 void cobalt_print_init(void);
 
+void cobalt_print_init_atfork(void);
+
 void cobalt_print_exit(void);
 
 void cobalt_ticks_init(unsigned long long freq);
diff --git a/lib/cobalt/printf.c b/lib/cobalt/printf.c
index e391f96..f19f4ea 100644
--- a/lib/cobalt/printf.c
+++ b/lib/cobalt/printf.c
@@ -670,7 +670,7 @@ static void spawn_printer_thread(void)
pthread_create(printer_thread, thattr, printer_loop, NULL);
 }
 
-static void forked_child_init(void)
+void 

[Xenomai-git] Jan Kiszka : sysregd: Ignore SIGHUP while running as daemon

2015-01-12 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: ae40db72eb99a5ebee09588ac64c903ca5e8c1d4
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=ae40db72eb99a5ebee09588ac64c903ca5e8c1d4

Author: Jan Kiszka jan.kis...@siemens.com
Date:   Sun Jan  4 14:20:16 2015 +0100

sysregd: Ignore SIGHUP while running as daemon

This signal is sent to the daemons when its original session is
terminated.

Signed-off-by: Jan Kiszka jan.kis...@siemens.com

---

 lib/copperplate/regd/regd.c |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/copperplate/regd/regd.c b/lib/copperplate/regd/regd.c
index 780a922..bc9335c 100644
--- a/lib/copperplate/regd/regd.c
+++ b/lib/copperplate/regd/regd.c
@@ -371,8 +371,9 @@ static void create_system_fs(const char *arg0, const char 
*rootdir)
memset(sa, 0, sizeof(sa));
sa.sa_handler = cleanup_handler;
sigaction(SIGTERM, sa, NULL);
-   sigaction(SIGHUP, sa, NULL);
sigaction(SIGINT, sa, NULL);
+   sa.sa_handler = SIG_IGN;
+   sigaction(SIGHUP, sa, NULL);
 
for (d = sysreg_dirs; d-path != NULL; d++)
registry_add_dir(d-path);


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


[Xenomai-git] Jan Kiszka : sysregd: Clean up sessions also in linger mode

2015-01-12 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: b2f75509d05fb003cb5b4959589ebd27819bbf22
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=b2f75509d05fb003cb5b4959589ebd27819bbf22

Author: Jan Kiszka jan.kis...@siemens.com
Date:   Wed Jan  7 18:03:17 2015 +0100

sysregd: Clean up sessions also in linger mode

There is no reason to skip events on session fds when in linger mode.
Rather, this check causes sysregd to enter a busy loop when a session
is closed.

Signed-off-by: Jan Kiszka jan.kis...@siemens.com

---

 lib/copperplate/regd/regd.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/copperplate/regd/regd.c b/lib/copperplate/regd/regd.c
index bc9335c..e98e3bd 100644
--- a/lib/copperplate/regd/regd.c
+++ b/lib/copperplate/regd/regd.c
@@ -320,7 +320,7 @@ static void handle_requests(void)
}
}
for (s = sockfd + 1; s  FD_SETSIZE; s++) {
-   if (!FD_ISSET(s, set) || linger || s == tmfd)
+   if (!FD_ISSET(s, set) || s == tmfd)
continue;
ret = __STD(recv(s, c, sizeof(c), 0));
if (ret = 0) {


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


[Xenomai-git] Jan Kiszka : copperplate/registry: Switch to /var/ run as default mountpoint root

2015-01-12 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: 65ef2e0825ddc853647175fc767d21872c2cad4c
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=65ef2e0825ddc853647175fc767d21872c2cad4c

Author: Jan Kiszka jan.kis...@siemens.com
Date:   Thu Nov 27 16:47:13 2014 +0100

copperplate/registry: Switch to /var/run as default mountpoint root

Creating directories in a user/admin-owned and typically persistent
filesystem for the purpose of mounting volatile filesystems on top is
a suboptimal default. Today /run should be used for such purposes, but
older distros may only expose the current FHS standard /var/run. So use
that instead.

This comes with the advantage that we will now typically work against
tmpfs, thus won't stumble if / is read-only.

Signed-off-by: Jan Kiszka jan.kis...@siemens.com

---

 configure |2 +-
 configure.ac  |2 +-
 doc/asciidoc/MIGRATION.adoc   |2 +-
 doc/asciidoc/README.APPLICATIONS.adoc |6 +++---
 doc/asciidoc/README.INSTALL.adoc  |4 ++--
 lib/copperplate/regd/Makefile.in  |   25 +++--
 6 files changed, 23 insertions(+), 18 deletions(-)

diff --git a/configure b/configure
index 04819c9..ef72f29 100755
--- a/configure
+++ b/configure
@@ -13097,7 +13097,7 @@ $as_echo_n checking whether the registry should be 
enabled...  6; }
 # Check whether --enable-registry was given.
 if test ${enable_registry+set} = set; then :
   enableval=$enable_registry; case $enableval in
-   y | yes) use_registry=y; registry_root=/mnt/xenomai ;;
+   y | yes) use_registry=y; registry_root=/var/run/xenomai ;;
/*) use_registry=y; registry_root=$enableval ;;
*) unset use_registry ;;
esac
diff --git a/configure.ac b/configure.ac
index 8627630..c055f83 100644
--- a/configure.ac
+++ b/configure.ac
@@ -295,7 +295,7 @@ AC_MSG_CHECKING(whether the registry should be enabled)
 AC_ARG_ENABLE(registry,
AS_HELP_STRING([--enable-registry], [Export real-time objects to a 
registry]),
[case $enableval in
-   y | yes) use_registry=y; registry_root=/mnt/xenomai ;;
+   y | yes) use_registry=y; registry_root=/var/run/xenomai ;;
/*) use_registry=y; registry_root=$enableval ;;
*) unset use_registry ;;
esac])
diff --git a/doc/asciidoc/MIGRATION.adoc b/doc/asciidoc/MIGRATION.adoc
index c837925..72206bf 100644
--- a/doc/asciidoc/MIGRATION.adoc
+++ b/doc/asciidoc/MIGRATION.adoc
@@ -104,7 +104,7 @@ filesystem.  The hierarchy of the Xenomai registry is 
organized as
 follows:
 
    
 
-/mount-point/* registry fs root, defaults to /mnt/xenomai */
+/mount-point/* registry fs root, defaults to /var/run/xenomai*/
 /session/* shared session name or anon */
 /pid/* application (main) pid */
/skin/* API name: alchemy/vxworks/psos/... */
diff --git a/doc/asciidoc/README.APPLICATIONS.adoc 
b/doc/asciidoc/README.APPLICATIONS.adoc
index 6cf353a..f775918 100644
--- a/doc/asciidoc/README.APPLICATIONS.adoc
+++ b/doc/asciidoc/README.APPLICATIONS.adoc
@@ -72,7 +72,7 @@ link:installing-xenomai-3-x[configuration switch]).
 *--registry-root=path*::
 
Tells Xenomai to root the object registry at the given path,
-   instead of +/mnt/xenomai+ by default (see the
+   instead of +/var/run/xenomai+ by default (see the
+--enable-registry+ switch from the configuration options).
 
 *--shared-registry*::
@@ -85,7 +85,7 @@ link:installing-xenomai-3-x[configuration switch]).
 *--no-registry*::
 
This switch disables registry support at runtime. No real-time
-   objects will be exported to +/mnt/xenomai/session/pid+,
+   objects will be exported to +/var/run/xenomai/session/pid+,
despite the registry code was compiled in.
 
 *--no-sanity*::
@@ -118,7 +118,7 @@ link:installing-xenomai-3-x[configuration switch]).
 
 [normal]
This label is also used to form the registry mount point for
-   each process, e.g. +/mnt/xenomai/session/pid+. See
+   each process, e.g. +/var/run/xenomai/session/pid+. See
+--enable-registry+ from the build options.
 
 [normal]
diff --git a/doc/asciidoc/README.INSTALL.adoc b/doc/asciidoc/README.INSTALL.adoc
index 07cae06..445b0d9 100644
--- a/doc/asciidoc/README.INSTALL.adoc
+++ b/doc/asciidoc/README.INSTALL.adoc
@@ -413,14 +413,14 @@ Generic configuration options (both cores)
 
 [normal]
When this option is enabled, the system creates a file
-   hierachy under `/mnt/xenomai/session/pid` (by default),
+   hierachy under `/var/run/xenomai/session/pid` (by default),
where you can access the internal state of the active
real-time objects. The session label is obtained from the
--session runtime switch. E.g. looking at the properties of a
VxWorks task could be done as follows:
 
 

[Xenomai-git] Jan Kiszka : sysregd: Fix --linger support

2015-01-12 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: 01cb66ad1d851dc839e0376e8c12a131201aa03d
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=01cb66ad1d851dc839e0376e8c12a131201aa03d

Author: Jan Kiszka jan.kis...@siemens.com
Date:   Sun Jan  4 14:14:34 2015 +0100

sysregd: Fix --linger support

The corresponding option variable was never written, thus --linger had
no effect.

Fixing this makes the compiler complain about a false-positive
uninitialized use of tmfd. Silence that.

Signed-off-by: Jan Kiszka jan.kis...@siemens.com

---

 lib/copperplate/regd/regd.c |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/copperplate/regd/regd.c b/lib/copperplate/regd/regd.c
index 43f763e..780a922 100644
--- a/lib/copperplate/regd/regd.c
+++ b/lib/copperplate/regd/regd.c
@@ -99,7 +99,7 @@ static const struct option options[] = {
 #define linger_opt 3
.name = linger,
.has_arg = 0,
-   .flag = NULL,
+   .flag = linger,
.val = 1,
},
{
@@ -273,7 +273,7 @@ static void handle_requests(void)
 {
struct itimerspec its;
fd_set refset, set;
-   int ret, s, tmfd;
+   int ret, s, tmfd = -1;
uint64_t exp;
char c;
 


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


[Xenomai-git] Jan Kiszka : doc: Fix registry path documentation

2015-01-12 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: 69c1ce7798d2e4d981c9869e24c9f13a86a8d85c
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=69c1ce7798d2e4d981c9869e24c9f13a86a8d85c

Author: Jan Kiszka jan.kis...@siemens.com
Date:   Thu Jan  8 17:26:48 2015 +0100

doc: Fix registry path documentation

The path was changed to session/pid some time ago, adjust docs.

Signed-off-by: Jan Kiszka jan.kis...@siemens.com

---

 doc/asciidoc/README.APPLICATIONS.adoc |4 ++--
 doc/asciidoc/README.INSTALL.adoc  |4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/asciidoc/README.APPLICATIONS.adoc 
b/doc/asciidoc/README.APPLICATIONS.adoc
index c0b4b98..6cf353a 100644
--- a/doc/asciidoc/README.APPLICATIONS.adoc
+++ b/doc/asciidoc/README.APPLICATIONS.adoc
@@ -85,7 +85,7 @@ link:installing-xenomai-3-x[configuration switch]).
 *--no-registry*::
 
This switch disables registry support at runtime. No real-time
-   objects will be exported to +/mnt/xenomai/session.pid+,
+   objects will be exported to +/mnt/xenomai/session/pid+,
despite the registry code was compiled in.
 
 *--no-sanity*::
@@ -118,7 +118,7 @@ link:installing-xenomai-3-x[configuration switch]).
 
 [normal]
This label is also used to form the registry mount point for
-   each process, e.g. +/mnt/xenomai/session.pid+. See
+   each process, e.g. +/mnt/xenomai/session/pid+. See
+--enable-registry+ from the build options.
 
 [normal]
diff --git a/doc/asciidoc/README.INSTALL.adoc b/doc/asciidoc/README.INSTALL.adoc
index 658a49a..07cae06 100644
--- a/doc/asciidoc/README.INSTALL.adoc
+++ b/doc/asciidoc/README.INSTALL.adoc
@@ -413,14 +413,14 @@ Generic configuration options (both cores)
 
 [normal]
When this option is enabled, the system creates a file
-   hierachy under `/mnt/xenomai/session.pid` (by default),
+   hierachy under `/mnt/xenomai/session/pid` (by default),
where you can access the internal state of the active
real-time objects. The session label is obtained from the
--session runtime switch. E.g. looking at the properties of a
VxWorks task could be done as follows:
 
 
-   $ cat /mnt/xenomai/anon.12656/vxworks/tasks/windTask 
+   $ cat /mnt/xenomai/anon/12656/vxworks/tasks/windTask 
name   = windTask
errno  = 0
status = ready


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


[Xenomai-git] Jan Kiszka : cobalt: Generalize RTDM udev rules

2015-01-12 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: 4ceee5928a457c57715c9bbaa2dccf8a4a17067e
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=4ceee5928a457c57715c9bbaa2dccf8a4a17067e

Author: Jan Kiszka jan.kis...@siemens.com
Date:   Thu Jan  8 17:14:10 2015 +0100

cobalt: Generalize RTDM udev rules

Make all RTDM devices accessible to the xenomai group (if it exists),
not just the rtpipes and RTnet's management interface.

Signed-off-by: Jan Kiszka jan.kis...@siemens.com

---

 kernel/cobalt/udev/00-rtnet.rules |3 ---
 kernel/cobalt/udev/rtdm.rules |2 ++
 kernel/cobalt/udev/rtpipe.rules   |2 --
 3 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/kernel/cobalt/udev/00-rtnet.rules 
b/kernel/cobalt/udev/00-rtnet.rules
index 0e40571..39df24e 100644
--- a/kernel/cobalt/udev/00-rtnet.rules
+++ b/kernel/cobalt/udev/00-rtnet.rules
@@ -1,5 +1,2 @@
-# RTnet management device
-KERNEL==rtnet, MODE=0660, GROUP=xenomai
-
 # Don't let udev mess with our special network names
 KERNEL==vnic*|rteth*|rtlo, NAME=$env{INTERFACE_NAME}
diff --git a/kernel/cobalt/udev/rtdm.rules b/kernel/cobalt/udev/rtdm.rules
new file mode 100644
index 000..d549eda
--- /dev/null
+++ b/kernel/cobalt/udev/rtdm.rules
@@ -0,0 +1,2 @@
+# Xenomai real-time devices
+SUBSYSTEM==rtdm, MODE=0660, GROUP=xenomai
diff --git a/kernel/cobalt/udev/rtpipe.rules b/kernel/cobalt/udev/rtpipe.rules
deleted file mode 100644
index e8db5c1..000
--- a/kernel/cobalt/udev/rtpipe.rules
+++ /dev/null
@@ -1,2 +0,0 @@
-# real-time pipe devices (Xenomai:rtpipe)
-KERNEL==rtp[0-9]*, MODE=0660, GROUP=xenomai


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


[Xenomai-git] Philippe Gerum : cobalt/x86: upgrade I-pipe support

2015-01-12 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: 7beb87acfe9fbd51eb402746158e3fde9942cb52
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=7beb87acfe9fbd51eb402746158e3fde9942cb52

Author: Philippe Gerum r...@xenomai.org
Date:   Tue Jan  6 17:38:29 2015 +0100

cobalt/x86: upgrade I-pipe support

---

 ...-x86-4.patch = ipipe-core-3.10.32-x86-5.patch} |  188 +-
 ...-x86-5.patch = ipipe-core-3.14.17-x86-6.patch} |  290 +-
 .../arch/x86/patches/ipipe-core-3.16-x86-1.patch   |15266 
 3 files changed, 15641 insertions(+), 103 deletions(-)

Diff:   
http://git.xenomai.org/?p=xenomai-3.git;a=commitdiff;h=7beb87acfe9fbd51eb402746158e3fde9942cb52

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