[Xenomai-git] Gilles Chanteperdrix : hal/arm: update Freescale Linux fork patch

2014-09-22 Thread git repository hosting
Module: xenomai-2.6
Branch: master
Commit: c14a8750777f59ad7b87302c5aae6e1d184c605d
URL:
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=c14a8750777f59ad7b87302c5aae6e1d184c605d

Author: Gilles Chanteperdrix 
Date:   Mon Sep 22 23:33:58 2014 +0200

hal/arm: update Freescale Linux fork patch

---

 ksrc/arch/arm/patches/README   |   17 +-
 .../mxc/adeos-ipipe-3.0.43-mx6q-1.18-12-post.patch |  911 --
 .../mxc/adeos-ipipe-3.0.43-mx6q-1.18-12-pre.patch  |  484 -
 ...patch => adeos-ipipe-3.0.43-mx6q-1.18-14.patch} |16083 +---
 4 files changed, 13707 insertions(+), 3788 deletions(-)

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

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


[Xenomai-git] Philippe Gerum : config: add version label

2014-09-22 Thread git repository hosting
Module: xenomai-forge
Branch: master
Commit: a0b20f45712b506bc0993fca4973e9e5591ea41c
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=a0b20f45712b506bc0993fca4973e9e5591ea41c

Author: Philippe Gerum 
Date:   Mon Sep 22 21:42:47 2014 +0200

config: add version label

---

 Makefile.in|4 +--
 config/Makefile.am |1 +
 config/Makefile.in |5 +--
 config/label   |1 +
 configure  |   33 
 configure.ac   |   11 ---
 demo/Makefile.in   |4 +--
 demo/alchemy/Makefile.in   |4 +--
 demo/alchemy/cobalt/Makefile.in|4 +--
 demo/posix/Makefile.in |4 +--
 demo/posix/cobalt/Makefile.in  |4 +--
 doc/Makefile.in|4 +--
 doc/asciidoc/Makefile.in   |4 +--
 doc/doxygen/Makefile.in|4 +--
 doc/gitdoc/Makefile.in |4 +--
 include/Makefile.in|4 +--
 include/alchemy/Makefile.in|4 +--
 include/boilerplate/Makefile.in|4 +--
 include/cobalt/Makefile.in |4 +--
 include/cobalt/boilerplate/Makefile.in |4 +--
 include/cobalt/kernel/Makefile.in  |4 +--
 include/cobalt/kernel/rtdm/Makefile.in |4 +--
 include/cobalt/kernel/rtdm/analogy/Makefile.in |4 +--
 include/cobalt/sys/Makefile.in |4 +--
 include/cobalt/uapi/Makefile.in|4 +--
 include/cobalt/uapi/asm-generic/Makefile.in|4 +--
 include/cobalt/uapi/kernel/Makefile.in |4 +--
 include/copperplate/Makefile.in|4 +--
 include/mercury/Makefile.in|4 +--
 include/mercury/boilerplate/Makefile.in|4 +--
 include/psos/Makefile.in   |4 +--
 include/rtdm/Makefile.in   |4 +--
 include/rtdm/uapi/Makefile.in  |4 +--
 include/smokey/Makefile.in |4 +--
 include/trank/Makefile.in  |4 +--
 include/trank/native/Makefile.in   |4 +--
 include/trank/posix/Makefile.in|4 +--
 include/trank/rtdm/Makefile.in |4 +--
 include/version.h  |   10 +++---
 include/vxworks/Makefile.in|4 +--
 include/xeno_config.h.in   |3 ++
 lib/Makefile.in|4 +--
 lib/alchemy/Makefile.in|4 +--
 lib/analogy/Makefile.in|4 +--
 lib/boilerplate/Makefile.in|4 +--
 lib/cobalt/Makefile.in |4 +--
 lib/cobalt/arch/Makefile.in|4 +--
 lib/cobalt/arch/arm/Makefile.in|4 +--
 lib/cobalt/arch/arm/include/Makefile.in|4 +--
 lib/cobalt/arch/arm/include/asm/Makefile.in|4 +--
 .../arch/arm/include/asm/xenomai/Makefile.in   |4 +--
 lib/cobalt/arch/blackfin/Makefile.in   |4 +--
 lib/cobalt/arch/blackfin/include/Makefile.in   |4 +--
 lib/cobalt/arch/blackfin/include/asm/Makefile.in   |4 +--
 .../arch/blackfin/include/asm/xenomai/Makefile.in  |4 +--
 lib/cobalt/arch/nios2/Makefile.in  |4 +--
 lib/cobalt/arch/nios2/include/Makefile.in  |4 +--
 lib/cobalt/arch/nios2/include/asm/Makefile.in  |4 +--
 .../arch/nios2/include/asm/xenomai/Makefile.in |4 +--
 lib/cobalt/arch/powerpc/Makefile.in|4 +--
 lib/cobalt/arch/powerpc/include/Makefile.in|4 +--
 lib/cobalt/arch/powerpc/include/asm/Makefile.in|4 +--
 .../arch/powerpc/include/asm/xenomai/Makefile.in   |4 +--
 lib/cobalt/arch/sh/Makefile.in |4 +--
 lib/cobalt/arch/sh/include/Makefile.in |4 +--
 lib/cobalt/arch/sh/include/asm/Makefile.in |4 +--
 lib/cobalt/arch/sh/include/asm/xenomai/Makefile.in |4 +--
 lib/cobalt/arch/x86/Makefile.in|4 +--
 lib/cobalt/arch/x86/include/Makefile.in|4 +--
 lib/cobalt/arch/x86/include/asm/Makefile.in|4 +--
 .../arch/x86/include/asm/xenomai/Makefile.in   |4 +--
 lib/copperplate/Makefile.in|4 +--
 lib/copperplate/regd/Makefile.in   |4 +--
 lib/psos/Makefile.in   |4 +--
 lib/smokey/Makefile.in   

[Xenomai-git] Philippe Gerum : config: add version label

2014-09-22 Thread git repository hosting
Module: xenomai-forge
Branch: next
Commit: a0b20f45712b506bc0993fca4973e9e5591ea41c
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=a0b20f45712b506bc0993fca4973e9e5591ea41c

Author: Philippe Gerum 
Date:   Mon Sep 22 21:42:47 2014 +0200

config: add version label

---

 Makefile.in|4 +--
 config/Makefile.am |1 +
 config/Makefile.in |5 +--
 config/label   |1 +
 configure  |   33 
 configure.ac   |   11 ---
 demo/Makefile.in   |4 +--
 demo/alchemy/Makefile.in   |4 +--
 demo/alchemy/cobalt/Makefile.in|4 +--
 demo/posix/Makefile.in |4 +--
 demo/posix/cobalt/Makefile.in  |4 +--
 doc/Makefile.in|4 +--
 doc/asciidoc/Makefile.in   |4 +--
 doc/doxygen/Makefile.in|4 +--
 doc/gitdoc/Makefile.in |4 +--
 include/Makefile.in|4 +--
 include/alchemy/Makefile.in|4 +--
 include/boilerplate/Makefile.in|4 +--
 include/cobalt/Makefile.in |4 +--
 include/cobalt/boilerplate/Makefile.in |4 +--
 include/cobalt/kernel/Makefile.in  |4 +--
 include/cobalt/kernel/rtdm/Makefile.in |4 +--
 include/cobalt/kernel/rtdm/analogy/Makefile.in |4 +--
 include/cobalt/sys/Makefile.in |4 +--
 include/cobalt/uapi/Makefile.in|4 +--
 include/cobalt/uapi/asm-generic/Makefile.in|4 +--
 include/cobalt/uapi/kernel/Makefile.in |4 +--
 include/copperplate/Makefile.in|4 +--
 include/mercury/Makefile.in|4 +--
 include/mercury/boilerplate/Makefile.in|4 +--
 include/psos/Makefile.in   |4 +--
 include/rtdm/Makefile.in   |4 +--
 include/rtdm/uapi/Makefile.in  |4 +--
 include/smokey/Makefile.in |4 +--
 include/trank/Makefile.in  |4 +--
 include/trank/native/Makefile.in   |4 +--
 include/trank/posix/Makefile.in|4 +--
 include/trank/rtdm/Makefile.in |4 +--
 include/version.h  |   10 +++---
 include/vxworks/Makefile.in|4 +--
 include/xeno_config.h.in   |3 ++
 lib/Makefile.in|4 +--
 lib/alchemy/Makefile.in|4 +--
 lib/analogy/Makefile.in|4 +--
 lib/boilerplate/Makefile.in|4 +--
 lib/cobalt/Makefile.in |4 +--
 lib/cobalt/arch/Makefile.in|4 +--
 lib/cobalt/arch/arm/Makefile.in|4 +--
 lib/cobalt/arch/arm/include/Makefile.in|4 +--
 lib/cobalt/arch/arm/include/asm/Makefile.in|4 +--
 .../arch/arm/include/asm/xenomai/Makefile.in   |4 +--
 lib/cobalt/arch/blackfin/Makefile.in   |4 +--
 lib/cobalt/arch/blackfin/include/Makefile.in   |4 +--
 lib/cobalt/arch/blackfin/include/asm/Makefile.in   |4 +--
 .../arch/blackfin/include/asm/xenomai/Makefile.in  |4 +--
 lib/cobalt/arch/nios2/Makefile.in  |4 +--
 lib/cobalt/arch/nios2/include/Makefile.in  |4 +--
 lib/cobalt/arch/nios2/include/asm/Makefile.in  |4 +--
 .../arch/nios2/include/asm/xenomai/Makefile.in |4 +--
 lib/cobalt/arch/powerpc/Makefile.in|4 +--
 lib/cobalt/arch/powerpc/include/Makefile.in|4 +--
 lib/cobalt/arch/powerpc/include/asm/Makefile.in|4 +--
 .../arch/powerpc/include/asm/xenomai/Makefile.in   |4 +--
 lib/cobalt/arch/sh/Makefile.in |4 +--
 lib/cobalt/arch/sh/include/Makefile.in |4 +--
 lib/cobalt/arch/sh/include/asm/Makefile.in |4 +--
 lib/cobalt/arch/sh/include/asm/xenomai/Makefile.in |4 +--
 lib/cobalt/arch/x86/Makefile.in|4 +--
 lib/cobalt/arch/x86/include/Makefile.in|4 +--
 lib/cobalt/arch/x86/include/asm/Makefile.in|4 +--
 .../arch/x86/include/asm/xenomai/Makefile.in   |4 +--
 lib/copperplate/Makefile.in|4 +--
 lib/copperplate/regd/Makefile.in   |4 +--
 lib/psos/Makefile.in   |4 +--
 lib/smokey/Makefile.in 

[Xenomai-git] New commits on branch master

2014-09-22 Thread git repository hosting
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=7fa868291316521fb22f3d2cd284a558751ff158
Author: Philippe Gerum 
Date:   Mon Sep 22 19:59:06 2014 +0200

alchemy/testsuite: fix arg type to event services

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=5fa36cb3f94ae39ddc8225f235e0242db63259c5
Author: Philippe Gerum 
Date:   Mon Sep 22 16:41:21 2014 +0200

cobalt/powerpc: upgrade I-pipe support

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=060853e10e9469f17b0544a7c931479403c0770b
Author: Philippe Gerum 
Date:   Mon Sep 22 16:41:17 2014 +0200

cobalt/blackfin: upgrade I-pipe support

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=0d66cec451e693c3d63f760117a0f50a679992f5
Author: Philippe Gerum 
Date:   Mon Sep 22 16:41:09 2014 +0200

cobalt/arm: upgrade I-pipe support

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=ed003145ead40cb4bfba6983d87ad796fe8582c4
Author: Philippe Gerum 
Date:   Mon Sep 22 16:41:03 2014 +0200

cobalt/x86: upgrade I-pipe support

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=a2773c49c590dff3bf683842df8b499ad3044d06
Author: Philippe Gerum 
Date:   Mon Sep 22 12:21:32 2014 +0200

cobalt/rtdm: cope with legacy sysfs attribute definition

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=d300bcf19e75e0cef10f8b2b35f9a3b85e3d1712
Author: Philippe Gerum 
Date:   Mon Sep 22 11:50:35 2014 +0200

cobalt/arch: announce task sharing to the kernel

Use the new ancillary service available with recent I-pipe releases to
announce our intent to share a task context with the regular kernel,
e.g. like scheduling such task.

This service will provide for inits that may be required for enabling
such sharing, such as using the FPU from Xenomai kthreads.

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=b23ab3f12a5f84d40578bd8eba8d21160960a7c9
Author: Philippe Gerum 
Date:   Mon Sep 22 09:34:49 2014 +0200

cobalt/posix/mq: fix error path in failed init

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=8f70e7783b8da52f97434e8dd1f99d322e192cdd
Author: Philippe Gerum 
Date:   Sun Sep 21 21:28:51 2014 +0200

cobalt/posix/cond: fix error path in failed init

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=293eaa8eccf1ea60074b72ebeeea0e6bd59176d8
Author: Philippe Gerum 
Date:   Sun Sep 21 20:07:39 2014 +0200

doc: prebuild

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=b8a2e306d7fc0c2aafe32c1e22a87e46ae014889
Author: Philippe Gerum 
Date:   Sun Sep 21 20:04:14 2014 +0200

config: bump core version

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=a1dbf5a9e61ace9f54606ad1daa106953ffdcc68
Author: Philippe Gerum 
Date:   Mon Sep 8 21:19:01 2014 +0200

config: bump ABI revision levels

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=9cdf9e3f58065ba5267275e5703dc4a8b8656ab0
Author: Philippe Gerum 
Date:   Sun Sep 21 16:14:38 2014 +0200

lib/cobalt: hint about disabled DEVTMPFS

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=0df694856350255201d1e8fb382eb31b214a7f51
Author: Philippe Gerum 
Date:   Sun Sep 21 15:04:34 2014 +0200

doc: fixups

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=dafd7e7dfaf971842edf967c4177faf2a1708225
Author: Philippe Gerum 
Date:   Sun Sep 21 12:51:08 2014 +0200

cobalt/posix/process: fix access to stale memory

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=70e617fc32c903353d6283ece5d605dc77810579
Author: Philippe Gerum 
Date:   Sun Sep 21 10:54:22 2014 +0200

cobalt: rename CONFIG_XENO_HW to CONFIG_XENO_ARCH

This option class is for machine/platform-specific tunables,
"hardware" has always been too generic.

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=7d7a1936a2968b1f5415651725835e7790afcbbf
Author: Philippe Gerum 
Date:   Sun Sep 21 10:16:43 2014 +0200

cobalt/rtdm/core: enable legacy pathnames for named devices

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=e61997c56880a3f394d6bda86a82724e2c6069fb
Author: Philippe Gerum 
Date:   Sat Sep 20 20:55:40 2014 +0200

cobalt/rtdm/device: sanitize locking

All device registration, open and close operations may only run from
secondary mode, so we don't need the hard spinlock for these anymore.

Cover all the relevant code sections by the registration mutex
instead.

At this chance, we also stop tracking named devices in a separate
list, as we have no use for such information since the recent move
from procfs to sysfs.

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=781ddd3b35705325f5fbbd25646483ebe626acbf
Author: Philippe Gerum 
Date:   Sat Sep 20 19:18:41 2014 +0200

cobalt/rtdm: update copyright information

URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=dab5f2ebe93

[Xenomai-git] Philippe Gerum : alchemy/testsuite: fix arg type to event services

2014-09-22 Thread git repository hosting
Module: xenomai-forge
Branch: next
Commit: 7fa868291316521fb22f3d2cd284a558751ff158
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=7fa868291316521fb22f3d2cd284a558751ff158

Author: Philippe Gerum 
Date:   Mon Sep 22 19:59:06 2014 +0200

alchemy/testsuite: fix arg type to event services

---

 lib/alchemy/testsuite/event-1.c |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/alchemy/testsuite/event-1.c b/lib/alchemy/testsuite/event-1.c
index 79c2e55..042281d 100644
--- a/lib/alchemy/testsuite/event-1.c
+++ b/lib/alchemy/testsuite/event-1.c
@@ -12,7 +12,7 @@ static RT_EVENT event;
 
 static void background_task(void *arg)
 {
-   unsigned long flags;
+   unsigned int flags;
int ret, n;
 
traceobj_enter(&trobj);
@@ -36,7 +36,7 @@ static void background_task(void *arg)
 
 static void foreground_task(void *arg)
 {
-   unsigned long flags;
+   unsigned int flags;
int ret, n;
 
traceobj_enter(&trobj);


___
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

2014-09-22 Thread git repository hosting
Module: xenomai-forge
Branch: next
Commit: 5fa36cb3f94ae39ddc8225f235e0242db63259c5
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=5fa36cb3f94ae39ddc8225f235e0242db63259c5

Author: Philippe Gerum 
Date:   Mon Sep 22 16:41:21 2014 +0200

cobalt/powerpc: upgrade I-pipe support

---

 ...-1.patch => ipipe-core-3.10.32-powerpc-4.patch} |  556 +-
 .../patches/ipipe-core-3.14.17-powerpc-4.patch |14812 
 2 files changed, 15216 insertions(+), 152 deletions(-)

Diff:   
http://git.xenomai.org/?p=xenomai-forge.git;a=commitdiff;h=5fa36cb3f94ae39ddc8225f235e0242db63259c5

___
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

2014-09-22 Thread git repository hosting
Module: xenomai-forge
Branch: next
Commit: ed003145ead40cb4bfba6983d87ad796fe8582c4
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=ed003145ead40cb4bfba6983d87ad796fe8582c4

Author: Philippe Gerum 
Date:   Mon Sep 22 16:41:03 2014 +0200

cobalt/x86: upgrade I-pipe support

---

 ...-x86-1.patch => ipipe-core-3.10.32-x86-4.patch} |  500 +-
 .../x86/patches/ipipe-core-3.14.17-x86-4.patch |15101 
 2 files changed, 15397 insertions(+), 204 deletions(-)

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

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


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

2014-09-22 Thread git repository hosting
Module: xenomai-forge
Branch: next
Commit: 060853e10e9469f17b0544a7c931479403c0770b
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=060853e10e9469f17b0544a7c931479403c0770b

Author: Philippe Gerum 
Date:   Mon Sep 22 16:41:17 2014 +0200

cobalt/blackfin: upgrade I-pipe support

---

 ...1.patch => ipipe-core-3.10.32-blackfin-3.patch} |  505 +-
 .../patches/ipipe-core-3.14.17-blackfin-4.patch|11584 
 2 files changed, 11946 insertions(+), 143 deletions(-)

Diff:   
http://git.xenomai.org/?p=xenomai-forge.git;a=commitdiff;h=060853e10e9469f17b0544a7c931479403c0770b

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


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

2014-09-22 Thread git repository hosting
Module: xenomai-forge
Branch: next
Commit: 0d66cec451e693c3d63f760117a0f50a679992f5
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=0d66cec451e693c3d63f760117a0f50a679992f5

Author: Philippe Gerum 
Date:   Mon Sep 22 16:41:09 2014 +0200

cobalt/arm: upgrade I-pipe support

---

 ...-arm-1.patch => ipipe-core-3.10.32-arm-4.patch} |  844 +-
 .../arm/patches/ipipe-core-3.14.17-arm-4.patch |21852 
 2 files changed, 22477 insertions(+), 219 deletions(-)

Diff:   
http://git.xenomai.org/?p=xenomai-forge.git;a=commitdiff;h=0d66cec451e693c3d63f760117a0f50a679992f5

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


[Xenomai-git] Philippe Gerum : cobalt/arch: announce task sharing to the kernel

2014-09-22 Thread git repository hosting
Module: xenomai-forge
Branch: next
Commit: d300bcf19e75e0cef10f8b2b35f9a3b85e3d1712
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=d300bcf19e75e0cef10f8b2b35f9a3b85e3d1712

Author: Philippe Gerum 
Date:   Mon Sep 22 11:50:35 2014 +0200

cobalt/arch: announce task sharing to the kernel

Use the new ancillary service available with recent I-pipe releases to
announce our intent to share a task context with the regular kernel,
e.g. like scheduling such task.

This service will provide for inits that may be required for enabling
such sharing, such as using the FPU from Xenomai kthreads.

---

 include/cobalt/kernel/thread.h |3 +--
 kernel/cobalt/posix/process.c  |2 +-
 kernel/cobalt/thread.c |   30 --
 3 files changed, 22 insertions(+), 13 deletions(-)

diff --git a/include/cobalt/kernel/thread.h b/include/cobalt/kernel/thread.h
index 6438261..68a8ca9 100644
--- a/include/cobalt/kernel/thread.h
+++ b/include/cobalt/kernel/thread.h
@@ -419,8 +419,7 @@ void xnthread_switch_fpu(struct xnsched *sched);
 static inline void xnthread_switch_fpu(struct xnsched *sched) { }
 #endif /* CONFIG_XENO_ARCH_FPU */
 
-void xnthread_init_shadow_tcb(struct xnthread *thread,
- struct task_struct *task);
+void xnthread_init_shadow_tcb(struct xnthread *thread);
 
 void xnthread_init_root_tcb(struct xnthread *thread);
 
diff --git a/kernel/cobalt/posix/process.c b/kernel/cobalt/posix/process.c
index 3c72db8..42a33eb 100644
--- a/kernel/cobalt/posix/process.c
+++ b/kernel/cobalt/posix/process.c
@@ -659,7 +659,7 @@ int cobalt_map_user(struct xnthread *thread, __u32 __user 
*u_winoff)
 * positive in debug code from handle_schedule_event() and
 * friends.
 */
-   xnthread_init_shadow_tcb(thread, current);
+   xnthread_init_shadow_tcb(thread);
xnthread_suspend(thread, XNRELAX, XN_INFINITE, XN_RELATIVE, NULL);
init_uthread_info(thread);
xnthread_set_state(thread, XNMAPPED);
diff --git a/kernel/cobalt/thread.c b/kernel/cobalt/thread.c
index aec4970..f5444d3 100644
--- a/kernel/cobalt/thread.c
+++ b/kernel/cobalt/thread.c
@@ -222,20 +222,29 @@ err_out:
return ret;
 }
 
-void xnthread_init_shadow_tcb(struct xnthread *thread, struct task_struct 
*task)
+void xnthread_init_shadow_tcb(struct xnthread *thread)
 {
struct xnarchtcb *tcb = xnthread_archtcb(thread);
+   struct task_struct *p = current;
+
+   /*
+* If the current task is a kthread, the pipeline will take
+* the necessary steps to make the FPU usable in such
+* context. The kernel already took care of this issue for
+* userland tasks (e.g. setting up a clean backup area).
+*/
+   __ipipe_share_current(0);
 
memset(tcb, 0, sizeof(*tcb));
-   tcb->core.host_task = task;
-   tcb->core.tsp = &task->thread;
-   tcb->core.mm = task->mm;
-   tcb->core.active_mm = task->mm;
+   tcb->core.host_task = p;
+   tcb->core.tsp = &p->thread;
+   tcb->core.mm = p->mm;
+   tcb->core.active_mm = p->mm;
 #ifdef CONFIG_XENO_ARCH_WANT_TIP
-   tcb->core.tip = task_thread_info(task);
+   tcb->core.tip = task_thread_info(p);
 #endif
 #ifdef CONFIG_XENO_ARCH_FPU
-   tcb->core.user_fpu_owner = task;
+   tcb->core.user_fpu_owner = p;
 #endif /* CONFIG_XENO_ARCH_FPU */
xnarch_init_shadow_tcb(thread);
 }
@@ -243,11 +252,12 @@ void xnthread_init_shadow_tcb(struct xnthread *thread, 
struct task_struct *task)
 void xnthread_init_root_tcb(struct xnthread *thread)
 {
struct xnarchtcb *tcb = xnthread_archtcb(thread);
+   struct task_struct *p = current;
 
memset(tcb, 0, sizeof(*tcb));
-   tcb->core.host_task = current;
+   tcb->core.host_task = p;
tcb->core.tsp = &tcb->core.ts;
-   tcb->core.mm = current->mm;
+   tcb->core.mm = p->mm;
 #ifdef CONFIG_XENO_ARCH_WANT_TIP
tcb->core.tip = NULL;
 #endif
@@ -2353,7 +2363,7 @@ int xnthread_map(struct xnthread *thread, struct 
completion *done)
 
trace_cobalt_shadow_map(thread);
 
-   xnthread_init_shadow_tcb(thread, p);
+   xnthread_init_shadow_tcb(thread);
xnthread_suspend(thread, XNRELAX, XN_INFINITE, XN_RELATIVE, NULL);
init_kthread_info(thread);
xnthread_set_state(thread, XNMAPPED);


___
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

2014-09-22 Thread git repository hosting
Module: xenomai-forge
Branch: next
Commit: 592558ec3265ae51d6e6df46e38b06b72a51364e
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=592558ec3265ae51d6e6df46e38b06b72a51364e

Author: Philippe Gerum 
Date:   Mon Sep 22 16:41:03 2014 +0200

cobalt/x86: upgrade I-pipe support

---

 ...-x86-1.patch => ipipe-core-3.10.32-x86-3.patch} |  502 +-
 .../x86/patches/ipipe-core-3.14.17-x86-3.patch |15103 
 2 files changed, 15401 insertions(+), 204 deletions(-)

Diff:   
http://git.xenomai.org/?p=xenomai-forge.git;a=commitdiff;h=592558ec3265ae51d6e6df46e38b06b72a51364e

___
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

2014-09-22 Thread git repository hosting
Module: xenomai-forge
Branch: next
Commit: c8f07343cd37d5cfaa0275efb01203f06f8d02d4
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=c8f07343cd37d5cfaa0275efb01203f06f8d02d4

Author: Philippe Gerum 
Date:   Mon Sep 22 16:41:21 2014 +0200

cobalt/powerpc: upgrade I-pipe support

---

 ...-1.patch => ipipe-core-3.10.32-powerpc-3.patch} |  558 +-
 .../patches/ipipe-core-3.14.17-powerpc-3.patch |14814 
 2 files changed, 15220 insertions(+), 152 deletions(-)

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

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


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

2014-09-22 Thread git repository hosting
Module: xenomai-forge
Branch: next
Commit: f9731f99f592415499eb4672d828786888d89fdb
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=f9731f99f592415499eb4672d828786888d89fdb

Author: Philippe Gerum 
Date:   Mon Sep 22 16:41:17 2014 +0200

cobalt/blackfin: upgrade I-pipe support

---

 ...1.patch => ipipe-core-3.10.32-blackfin-2.patch} |  507 +-
 .../patches/ipipe-core-3.14.17-blackfin-3.patch|11586 
 2 files changed, 11950 insertions(+), 143 deletions(-)

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

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


[Xenomai-git] Philippe Gerum : cobalt/rtdm: cope with legacy sysfs attribute definition

2014-09-22 Thread git repository hosting
Module: xenomai-forge
Branch: next
Commit: a2773c49c590dff3bf683842df8b499ad3044d06
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=a2773c49c590dff3bf683842df8b499ad3044d06

Author: Philippe Gerum 
Date:   Mon Sep 22 12:21:32 2014 +0200

cobalt/rtdm: cope with legacy sysfs attribute definition

---

 .../cobalt/include/asm-generic/xenomai/wrappers.h  |   16 ++-
 kernel/cobalt/rtdm/device.c|   28 +---
 2 files changed, 40 insertions(+), 4 deletions(-)

diff --git a/kernel/cobalt/include/asm-generic/xenomai/wrappers.h 
b/kernel/cobalt/include/asm-generic/xenomai/wrappers.h
index b954406..ccebb48 100644
--- a/kernel/cobalt/include/asm-generic/xenomai/wrappers.h
+++ b/kernel/cobalt/include/asm-generic/xenomai/wrappers.h
@@ -28,9 +28,23 @@
 #error "CONFIG_IPIPE_LEGACY must be switched off"
 #endif
 
+/*
+ * To keep the #ifdefery as readable as possible, please:
+ *
+ * - keep the conditional structure flat, no nesting (e.g. do not nest
+ *   the pre-3.11 conditions into the pre-3.14 ones).
+ * - group all wrappers which share the same condition.
+ */
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,11,0)
+#define DEVICE_ATTR_RW(_name)  __ATTR_RW(_name)
+#define DEVICE_ATTR_RO(_name)  __ATTR_RO(_name)
+#define DEVICE_ATTR_WO(_name)  __ATTR_WO(_name)
+#endif /* < 3.11 */
+
 #if LINUX_VERSION_CODE < KERNEL_VERSION(3,14,0)
 #define get_current_uuid() current_uid()
-#else
+#else /* >= 3.14 */
 #define get_current_uuid() from_kuid_munged(current_user_ns(), current_uid())
 #endif
 
diff --git a/kernel/cobalt/rtdm/device.c b/kernel/cobalt/rtdm/device.c
index 9697be9..40df644 100644
--- a/kernel/cobalt/rtdm/device.c
+++ b/kernel/cobalt/rtdm/device.c
@@ -148,7 +148,6 @@ static ssize_t profile_show(struct device *kdev,
   dev->driver->profile_info.class_id,
   dev->driver->profile_info.subclass_id);
 }
-static DEVICE_ATTR_RO(profile);
 
 static ssize_t refcount_show(struct device *kdev,
 struct device_attribute *attr, char *buf)
@@ -157,7 +156,6 @@ static ssize_t refcount_show(struct device *kdev,
 
return sprintf(buf, "%d\n", atomic_read(&dev->refcount));
 }
-static DEVICE_ATTR_RO(refcount);
 
 #define cat_count(__buf, __str)\
({  \
@@ -175,7 +173,6 @@ static ssize_t flags_show(struct device *kdev,
return sprintf(buf, "%#x\n", drv->device_flags);
 
 }
-static DEVICE_ATTR_RO(flags);
 
 static ssize_t type_show(struct device *kdev,
 struct device_attribute *attr, char *buf)
@@ -192,6 +189,12 @@ static ssize_t type_show(struct device *kdev,
return ret;
 
 }
+
+#ifdef ATTRIBUTE_GROUPS
+
+static DEVICE_ATTR_RO(profile);
+static DEVICE_ATTR_RO(refcount);
+static DEVICE_ATTR_RO(flags);
 static DEVICE_ATTR_RO(type);
 
 static struct attribute *rtdm_attrs[] = {
@@ -203,6 +206,25 @@ static struct attribute *rtdm_attrs[] = {
 };
 ATTRIBUTE_GROUPS(rtdm);
 
+#else /* !ATTRIBUTE_GROUPS */
+
+/*
+ * Cope with legacy sysfs attributes. Scheduled for removal when 3.10
+ * is at EOL for us.
+ */
+static struct device_attribute rtdm_attrs[] = {
+   DEVICE_ATTR_RO(profile),
+   DEVICE_ATTR_RO(refcount),
+   DEVICE_ATTR_RO(flags),
+   DEVICE_ATTR_RO(type),
+   __ATTR_NULL 
+};
+
+#define dev_groups   dev_attrs
+#define rtdm_groups  rtdm_attrs
+
+#endif /* !ATTRIBUTE_GROUPS */
+
 static int register_driver(struct rtdm_driver *drv)
 {
dev_t rdev;


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


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

2014-09-22 Thread git repository hosting
Module: xenomai-forge
Branch: next
Commit: 3835ce0856efbc053229b9c24b8db4d981720e3b
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=3835ce0856efbc053229b9c24b8db4d981720e3b

Author: Philippe Gerum 
Date:   Mon Sep 22 16:41:09 2014 +0200

cobalt/arm: upgrade I-pipe support

---

 ...-arm-1.patch => ipipe-core-3.10.32-arm-3.patch} |  846 +-
 .../arm/patches/ipipe-core-3.14.17-arm-3.patch |21854 
 2 files changed, 22481 insertions(+), 219 deletions(-)

Diff:   
http://git.xenomai.org/?p=xenomai-forge.git;a=commitdiff;h=3835ce0856efbc053229b9c24b8db4d981720e3b

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


[Xenomai-git] Philippe Gerum : cobalt/posix/mq: fix error path in failed init

2014-09-22 Thread git repository hosting
Module: xenomai-forge
Branch: next
Commit: b23ab3f12a5f84d40578bd8eba8d21160960a7c9
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=b23ab3f12a5f84d40578bd8eba8d21160960a7c9

Author: Philippe Gerum 
Date:   Mon Sep 22 09:34:49 2014 +0200

cobalt/posix/mq: fix error path in failed init

---

 kernel/cobalt/posix/mqueue.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cobalt/posix/mqueue.c b/kernel/cobalt/posix/mqueue.c
index 9727bed..b1ce1d2 100644
--- a/kernel/cobalt/posix/mqueue.c
+++ b/kernel/cobalt/posix/mqueue.c
@@ -334,7 +334,7 @@ static int mq_open(int uqd, const char *name, int oflags,
 
err = mq_init(mq, attr);
if (err) {
-   xnfree(mq);
+   kfree(mq);
return err;
}
 


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