All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Felipe Castro <felipecpc1@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] [PXA + Xenomai] Latency program
Date: Fri, 28 Aug 2009 21:16:24 +0200	[thread overview]
Message-ID: <4A982D08.4050802@domain.hid> (raw)
In-Reply-To: <7a15153d0908281209i5b133c53l4fa816993df7d0eb@domain.hid>

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

Felipe Castro wrote:
> Well , i found the topic, but I'm using kernel 2.6.27 with xenomai 2.4.8 and
> the code to be patched is a little bit different. I dont't know how to do ,
> can you help me ?

The code has not changed, but I think my patch was mangled, please try
the attached one.


-- 
					    Gilles.

[-- Attachment #2: pxa-disable-fpu.diff --]
[-- Type: text/x-diff, Size: 1202 bytes --]

diff --git a/ksrc/arch/arm/switch.S b/ksrc/arch/arm/switch.S
index a7c3dba..384f2cd 100644
--- a/ksrc/arch/arm/switch.S
+++ b/ksrc/arch/arm/switch.S
@@ -102,10 +102,12 @@ ENTRY(rthal_thread_switch)
     strex   r5, r4, [ip]                    @ Clear exclusive monitor
 #endif
 #endif
+#if 0	
 #if defined(CONFIG_CPU_XSCALE) && !defined(CONFIG_IWMMXT)
     mra     r4, r5, acc0
     stmia   ip, {r4, r5}
 #endif
+#endif
 #if defined(CONFIG_HAS_TLS_REG)
     mcr     p15, 0, r3, c13, c0, 3          @ set TLS register
 #elif !defined(CONFIG_TLS_REG_EMUL)
@@ -129,6 +131,7 @@ ENTRY(rthal_thread_switch)
 #endif
     VFPFMXR FPEXC, r4
 #endif
+#if 0
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18) &&  defined(CONFIG_IWMMXT)
     bl      iwmmxt_task_switch
 #endif
@@ -137,13 +140,16 @@ ENTRY(rthal_thread_switch)
     ldmib   r4, {r4, r5}
     mar     acc0, r4, r5
 #endif
+#endif
     add	    r4, r2, #TI_CPU_SAVE
+#if 0	
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 18) && defined(CONFIG_IWMMXT)
     mov	    r5, r0
     mov     r0, r2
     bl	    iwmmxt_task_switch
     mov	    r0, r5
-#endif	
+#endif
+#endif
     ldmia   r4, {r4 - sl, fp, sp, pc}       @ Load all regs saved previously
 
 /*

  reply	other threads:[~2009-08-28 19:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-28 17:50 [Xenomai-core] [PXA + Xenomai] Latency program Felipe Castro
2009-08-28 18:00 ` Gilles Chanteperdrix
2009-08-28 18:04   ` Gilles Chanteperdrix
2009-08-28 19:09     ` Felipe Castro
2009-08-28 19:16       ` Gilles Chanteperdrix [this message]
2009-08-31 14:53         ` Felipe Castro
2009-08-31 15:10           ` Gilles Chanteperdrix
2009-08-31 18:36             ` Felipe Castro
     [not found]             ` <7a15153d0908311135o753de66ex90f835f14c506e9b@domain.hid>
2009-08-31 18:38               ` [Xenomai-help] " Gilles Chanteperdrix
2009-08-31 18:48               ` 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=4A982D08.4050802@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=felipecpc1@domain.hid \
    --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.