Jan Kiszka wrote:
 > Gilles Chanteperdrix wrote:
 > > --- /dev/null      2006-05-03 22:25:59.000000000 +0200
 > > +++ include/rtdm/rttesting.h       2006-06-07 18:50:14.000000000 +0200
 > > @@ -0,0 +1,188 @@
 > ...
 > > + *
 > > + * @{
 > > + */
 > > +
 > > +#ifndef _RTBENCHMARK_H
 > > +#define _RTBENCHMARK_H
 > Hmm, there might be further renamings required. Could you double-check
 > (e.g. grep -ri benchmark)?

This particular define should be fixed in the version that I commited. 

I also put dummy asm/fptest.h for all other architectures than x86, I
would now need volunteers with other hardware than x86 to implement
asm/fptest.h for their platform and run the test.

A little explanation of what work should be done: two functions
fp_regs_set and fp_regs_check should be implemented. fp_regs_set should
set all fp registers to the integer value passed as
argument. fp_regs_check should check that all fp registers are set to
the integer value passed as argument, print the incorrect registers if
any and return 1 if some register value is incorrect.

These functions get called before and after each FPU switch to verify
that the FPU switch actually saved and restored the FPU 
registers correctly. The registers are set to the unique index of the
current task so that in case of failure, the value of the incorrect
register should allow to know from which task it comes.


                                            Gilles Chanteperdrix.

Xenomai-core mailing list

Reply via email to