Hi Martin,

does your void *thread_code(void *t) contain pthread_wait_np(); ???
Have you left init_module/cleanup_module unchangend???

Before doing anything else add same rtl_printf to init_module
and thread_code to locate place of crash.

Anyway your story is a bit surprising to me. Drop me your code +
Makefile. (I've got the same kind of application).

Regards,

pa

On Tue, Sep 19, 2000 at 10:57:05PM +0200, Martin wrote:
> The more I read about the use of floating points the more I get confused
> about it.
> 
> I am about to control a tricept-robot with rtlinux-2.3-pre2. Since I
> started trying and working with your kernel, I read about the use of
> fp's  in the mailing list every night. Now I have set up the
> communication with the powerboard with the rt_com-module and I'm ready
> to implement the whole computation of the control-values into the
> "thread_code" of Barabanov's testcom.c, which seems very suitable for my
> project. - But I still don't know how to make it work.
> 
> My computation is quite large with plenty of pow's, sqrt's, sin's and
> cos's in it. But it has to be done in realtime to be able to control the
> machine (it worked with DOS at a period of 20ms).
> 
> Now I did the following test:
> 
> ... all unchanged untill here...
> 
> void *thread_code(void *t)    {
>     pthread_setfp_np(thread, 1);
>     pthread_make_periodic_np(thread,...)
>     do    {
>         int n;
>         char buf[210]
>         double a, b;
>         a = 2.0;
>         b = sqrt(a);
>         ...then no change anymore...
>     } while(1);
>     return 0;
> }
> 
> ...and added the following lines in the Makefile:
> testfp: testcom_fp.o
>     $(CC) $(CFLAGS) -c  testcom_fp.c
> 
> I had no errors with make testfp, but - I guess the cracks between you
> are already laughing - the insmod testcom_fp.o brought down my machine
> immediatly and completly. Is it may not allowed to use more than one
> pthread_function or is the math-function itself the problem? I couldn't
> get any messages after the insmod, also after the poweroff, the kernel
> seems really to stop working there.
> 
-- 
..........................................................................
Pavel Andris                               | tel: +421 7 5941 2167
Institute of Control Theory and Robotics   | fax: +421 7 5477 6045
Slovak Academy of Sciences                 | 
Dubravska cesta 9                          | e-mail: [EMAIL PROTECTED]
SK - 842 37 Bratislava                     |
Slovakia                                   |
..........................................................................
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to