All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: xenomai-core <xenomai@xenomai.org>,
	Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: adeos-main@gna.org
Subject: [Xenomai-core] 2.6.16-rc6 support
Date: Sun, 19 Mar 2006 22:55:36 +0100	[thread overview]
Message-ID: <441DD358.8010307@domain.hid> (raw)

[-- Attachment #1: Type: text/plain, Size: 812 bytes --]

Hi,

Jeroen reported success much earlier, now I had to rebase my box on
upcoming 2.6.16. So I would like to post the result, maybe others are
interested in starting an early test as well. Attached is a cleanly
applying Ipipe patch for -rc6 and a fix for a name collision in
posix/syscall.c (there are other mutex functions in the kernel now...).

I'm writing this mail on a 2.6.16-Xenomai box (x86) under load (POSIX
skin+cyclictest, ongoing kernel-built), and all works smoothly. Hmm, a
few minutes for 4 rejected hunks of the standard patch, some further for
the naming clash, and even the tracer applied out-of-the-box - that was
too easy. ;)

Jan


PS: Gilles, as a tiny cleanup, I would suggest converting all syscall
wrapper functions in posix/syscall.c into static ones. They are only
used in that file.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: mutex-2.6.16.patch --]
[-- Type: text/x-patch; name="mutex-2.6.16.patch", Size: 3096 bytes --]

Index: ksrc/skins/posix/syscall.c
===================================================================
--- ksrc/skins/posix/syscall.c	(Revision 754)
+++ ksrc/skins/posix/syscall.c	(Arbeitskopie)
@@ -803,7 +803,7 @@
     return -EINTR;
 }
 
-int __mutex_init (struct task_struct *curr, struct pt_regs *regs)
+int __pthread_mutex_init (struct task_struct *curr, struct pt_regs *regs)
 
 {
     union __xeno_mutex mx, *umx;
@@ -831,7 +831,7 @@
     return 0;
 }
 
-int __mutex_destroy (struct task_struct *curr, struct pt_regs *regs)
+int __pthread_mutex_destroy (struct task_struct *curr, struct pt_regs *regs)
 
 {
     union __xeno_mutex mx, *umx;
@@ -856,7 +856,7 @@
     return -err;
 }
 
-int __mutex_lock (struct task_struct *curr, struct pt_regs *regs)
+int __pthread_mutex_lock (struct task_struct *curr, struct pt_regs *regs)
 
 {
     union __xeno_mutex mx, *umx;
@@ -874,7 +874,7 @@
     return -pse51_mutex_timedlock_break(&mx.shadow_mutex, XN_INFINITE);
 }
 
-int __mutex_timedlock (struct task_struct *curr, struct pt_regs *regs)
+int __pthread_mutex_timedlock (struct task_struct *curr, struct pt_regs *regs)
 
 {
     union __xeno_mutex mx, *umx;
@@ -901,7 +901,7 @@
     return -pse51_mutex_timedlock_break(&mx.shadow_mutex,ts2ticks_ceil(&ts)+1);
 }
 
-int __mutex_trylock (struct task_struct *curr, struct pt_regs *regs)
+int __pthread_mutex_trylock (struct task_struct *curr, struct pt_regs *regs)
 
 {
     union __xeno_mutex mx, *umx;
@@ -919,7 +919,7 @@
     return -pthread_mutex_trylock(&mx.native_mutex);
 }
 
-int __mutex_unlock (struct task_struct *curr, struct pt_regs *regs)
+int __pthread_mutex_unlock (struct task_struct *curr, struct pt_regs *regs)
 
 {
     union __xeno_mutex mx, *umx;
@@ -2070,12 +2070,12 @@
     [__pse51_clock_gettime] = { &__clock_gettime, __xn_exec_any },
     [__pse51_clock_settime] = { &__clock_settime, __xn_exec_any },
     [__pse51_clock_nanosleep] = { &__clock_nanosleep, __xn_exec_primary },
-    [__pse51_mutex_init] = { &__mutex_init, __xn_exec_any },
-    [__pse51_mutex_destroy] = { &__mutex_destroy, __xn_exec_any },
-    [__pse51_mutex_lock] = { &__mutex_lock, __xn_exec_primary },
-    [__pse51_mutex_timedlock] = { &__mutex_timedlock, __xn_exec_primary },
-    [__pse51_mutex_trylock] = { &__mutex_trylock, __xn_exec_primary },
-    [__pse51_mutex_unlock] = { &__mutex_unlock, __xn_exec_primary },
+    [__pse51_mutex_init] = { &__pthread_mutex_init, __xn_exec_any },
+    [__pse51_mutex_destroy] = { &__pthread_mutex_destroy, __xn_exec_any },
+    [__pse51_mutex_lock] = { &__pthread_mutex_lock, __xn_exec_primary },
+    [__pse51_mutex_timedlock] = { &__pthread_mutex_timedlock, __xn_exec_primary },
+    [__pse51_mutex_trylock] = { &__pthread_mutex_trylock, __xn_exec_primary },
+    [__pse51_mutex_unlock] = { &__pthread_mutex_unlock, __xn_exec_primary },
     [__pse51_cond_init] = { &__cond_init, __xn_exec_any },
     [__pse51_cond_destroy] = { &__cond_destroy, __xn_exec_any },
     [__pse51_cond_wait] = { &__cond_wait, __xn_exec_primary },

[-- Attachment #3: adeos-ipipe-2.6.16-rc6-i386-1.2-01.patch.bz2 --]
[-- Type: application/x-bzip2, Size: 32894 bytes --]

             reply	other threads:[~2006-03-19 21:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-19 21:55 Jan Kiszka [this message]
2006-03-20  9:11 ` [Xenomai-core] 2.6.16-rc6 support Jan Kiszka
2006-03-22 23:06   ` Philippe Gerum
2006-03-20 13:27 ` [Xenomai-core] " Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=441DD358.8010307@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=adeos-main@gna.org \
    --cc=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.