[Xenomai-core] [PATCH 2/7] nucleus: Sanity check for vdso.h

2010-07-02 Thread Wolfgang Mauerer
Including the file only makes sense when support for pervasive rt is enabled, so add a corresponding check. Signed-off-by: Wolfgang Mauerer wolfgang.maue...@siemens.com Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/nucleus/vdso.h |4 1 files changed, 4 insertions(+), 0

[Xenomai-core] [PATCH 1/7] nucleus: Spelling fix for check-vdso.c

2010-07-02 Thread Wolfgang Mauerer
Signed-off-by: Wolfgang Mauerer wolfgang.maue...@siemens.com Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- src/testsuite/unit/check-vdso.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/testsuite/unit/check-vdso.c b/src/testsuite/unit/check-vdso.c index

[Xenomai-core] [PATCH 4/7] nucleus: Add CLOCK_HOST_REALTIME bits to nkvdso

2010-07-02 Thread Wolfgang Mauerer
Augment the shared vdso page with all data required to implement a clock CLOCK_HOST_REALTIME that provides time information synchronised with the NTP-corrected time in the Linux kernel. The definition of the hostrt data is placed in a separate head file so that we can use it irregardless of

[Xenomai-core] [PATCH 3/7] nucleus: Add userland cpu_relax() definition for x86

2010-07-02 Thread Wolfgang Mauerer
Signed-off-by: Wolfgang Mauerer wolfgang.maue...@siemens.com Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/asm-x86/atomic.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/asm-x86/atomic.h b/include/asm-x86/atomic.h index bb3ce46..16bc990 100644

[Xenomai-core] [PATCH 5/7] posix: Support reading the host realtime clock in realtime context

2010-07-02 Thread Wolfgang Mauerer
Wall time management is typically assisted by the NTP protocol in the Linux context, but this information is not propagated to Xenomai. This patch adds support for a CLOCK_HOST_REALTIME clock id that is coupled to the host operating system's realtime clock. The required information from the Kernel

[Xenomai-core] [PATCH 6/7] posix: Userspace hostrt reading without switching to kernel mode

2010-07-02 Thread Wolfgang Mauerer
From: Wolfgang Mauerer (none) wolfg...@dirichlet We can do this since the data are on the shared semaphore heap. The basis data structure is placed so that it is accessible from both the Linux kernel and Xenomai kernel/userland. This also requires to make the structure work with both kernel and

[Xenomai-core] [PATCH 7/7] posix: Add some example code for CLOCK_HOST_REALTIME

2010-07-02 Thread Wolfgang Mauerer
... and for reading the contents of the hostrt data. Signed-off-by: Wolfgang Mauerer wolfgang.maue...@siemens.com --- examples/posix/Makefile |3 +- examples/posix/show_hrtime.c | 82 ++ 2 files changed, 84 insertions(+), 1 deletions(-) create

Re: [Xenomai-core] [PATCH 0/7] Host realtime clock support

2010-07-02 Thread Gilles Chanteperdrix
Wolfgang Mauerer wrote: (This is the Xenomai part of the mechanism, please see the ipipe mailing list for the patches that provide the required basis infrastructure) This patch series extends Xenomai with a new clock, CLOCK_HOST_REALTIME. It allows for sharing NTP-corrected real time

Re: [Xenomai-core] [PATCH 7/7] posix: Add some example code for CLOCK_HOST_REALTIME

2010-07-02 Thread Jan Kiszka
Wolfgang Mauerer wrote: ... and for reading the contents of the hostrt data. Just realized: Please also update clocktest. Should already work with the new clock ID, but requires a cosmetic output patch. Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center

Re: [Xenomai-core] [PATCH 7/7] posix: Add some example code for CLOCK_HOST_REALTIME

2010-07-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Wolfgang Mauerer wrote: ... and for reading the contents of the hostrt data. Just realized: Please also update clocktest. Should already work with the new clock ID, but requires a cosmetic output patch. Yes, I thought about that. Maybe even if clocktest uses the new

[Xenomai-core] [PATCH (7+1)/7] posix: Add some example code for CLOCK_HOST_REALTIME

2010-07-02 Thread Wolfgang Mauerer
Kiszka, Jan wrote: Wolfgang Mauerer wrote: ... and for reading the contents of the hostrt data. Just realized: Please also update clocktest. Should already work with the new clock ID, but requires a cosmetic output patch. easy enough -- here you go ;-) (I'll integrate this into the series)

Re: [Xenomai-core] [PATCH 7/7] posix: Add some example code for CLOCK_HOST_REALTIME

2010-07-02 Thread Wolfgang Mauerer
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: ... and for reading the contents of the hostrt data. Just realized: Please also update clocktest. Should already work with the new clock ID, but requires a cosmetic output patch. Yes, I thought about that. Maybe even if

Re: [Xenomai-core] [PATCH 7/7] posix: Add some example code for CLOCK_HOST_REALTIME

2010-07-02 Thread Gilles Chanteperdrix
Wolfgang Mauerer wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: ... and for reading the contents of the hostrt data. Just realized: Please also update clocktest. Should already work with the new clock ID, but requires a cosmetic output patch. Yes, I thought

Re: [Xenomai-core] [PATCH 0/7] Host realtime clock support

2010-07-02 Thread Wolfgang Mauerer
Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: (This is the Xenomai part of the mechanism, please see the ipipe mailing list for the patches that provide the required basis infrastructure) This patch series extends Xenomai with a new clock, CLOCK_HOST_REALTIME. It allows for sharing