On Thu, 15 Jun 2000, Jacques GANGLOFF wrote:
> * When I insert the module in a xterm, the system hangs immediately after pressing
>[ENTER].
> I tracked down the problem, and it seems to happen in a call of a function with one
>argument is
> a double.
>
> * When I insert the SAME module in a virtual console (X is not running) the system
>does not hang
> and the module works as expected. This can be reapeted many times without problem.
I guess VT does not use FP, xterm (and Xserver) do use it.
> static double cesar_counter_top_per_radian[CESAR_NB_JOINTS] = { 12732.39,
> 12732.39,
> 12732.39,
> 10026.76,
> 10026.76,
> 10026.76 };
Well, I am not sure if this does not translate to some FP operations in the
kernel space during module loading. If so, this could result in bad things.
Probably the only way is to look into disassembled module
objdump -d -S module.o
compile the module with -g (debug) flag.
> int rt_init_cesar( void ) {
>
> for ( i = 0; i < CESAR_NB_JOINTS; i++ ) {
> Robot.Control[i] =
> Robot.Offset[i] = 0.0;
> Robot.Reference[i] =
> Robot.Measurement[i] = 0;
> }
I hope this is called only from RT thread.
Best regards,
--
Tomek
-- [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/