MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="67sCI1pTKg" Content-Transfer-Encoding: 7bit Message-ID: <17888.41453.933445.213344@domain.hid> Date: Sat, 24 Feb 2007 21:37:01 +0100 In-Reply-To: <1172312265.2161.7.camel@domain.hid> References: <1170205077.21219.67.camel@domain.hid> <1172247508.26738.67.camel@domain.hid> <17887.18450.939044.430454@domain.hid> <1172312265.2161.7.camel@domain.hid> From: Gilles Chanteperdrix Subject: [Xenomai-core] Re: [Adeos-main] Re: Heads up: Xenomai port over x86_64 has started List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: rpm@xenomai.org Cc: xenomai@xenomai.org --67sCI1pTKg Content-Type: text/plain; charset=us-ascii Content-Description: message body and .signature Content-Transfer-Encoding: 7bit Philippe Gerum wrote: > On Fri, 2007-02-23 at 21:01 +0100, Gilles Chanteperdrix wrote: > > Philippe Gerum wrote: > > > On Wed, 2007-01-31 at 01:58 +0100, Philippe Gerum wrote: > > > > Ok, no more distant rumblings about x86_64: a Xenomai port to this > > > > architecture has officially started. A preliminary version of the I-pipe > > > > for x86_64 is now available, which I'm going to use to port the Xenomai > > > > core. > > > > > > Here we are. The following revised I-pipe patch is stable enough to run > > > the Xenomai trunk/ on a 4-way Opteron, and on qemu-x86_64 0.8.2 too: > > > http://download.gna.org/adeos/patches/v2.6/x86_64/adeos-ipipe-2.6.19-x86_64-1.0-02.patch > > > > > > The status of the Xenomai/x86_64 port is as follows: > > > > > > - real-time support in user-space is mostly ok, except the FPU > > > management over the Xenomai domain which is broken beyond all > > > recognition. Gilles, as already discussed, I won't resist to let you > > > bang your head on this wall instead of mine, because 1) this will allow > > > me to switch to the pending issues people have raised on the lists so > > > far, 2) I'm fundamentally evil, 3) the fact that you once did dare > > > rewriting the FPU support for Xenomai/x86 clearly shows that you do have > > > some masochistic tendencies anyway. > > > > Ok, I will do it. Do you have an URL of a datasheet at hand (since the > > x86 code does not work, there must be some difference) ? > > AFAICS, you still have an i387 to deal with. I would rather suspect an > issue with some revised logic in the regular task switching code. > Sidenote: the Xenomai/x86_64 switch code eliminates the "switch-to-self" > issue we discussed recently for x86, and I noticed this would break our > x86 FPU logic doing so, so maybe there is something to dig here. I'll > check this asap. I got switchtest to work on x86 without the "switch-to-self" switch, both with and without fxsr, could you try the following patch on x86_64 ? -- Gilles Chanteperdrix. --67sCI1pTKg Content-Type: text/plain Content-Disposition: inline; filename="xeno-x86_64-fpu-switch.patch" Content-Transfer-Encoding: 7bit Index: include/asm-x86_64/bits/pod.h =================================================================== --- include/asm-x86_64/bits/pod.h (revision 2226) +++ include/asm-x86_64/bits/pod.h (working copy) @@ -302,8 +302,10 @@ if (tcb->cr0_ts) return; - xnarch_restore_fpu(tcb); - return; + if (!(task_thread_info(task)->status & TS_USEDFPU)) { + xnarch_restore_fpu(tcb); + return; + } } clts(); --67sCI1pTKg--