Mr. Pfistner,

> I sometimes have strange key (in X) behaviour just while loading a 2MB
rt-module. 
> Keystrokes seem to be crippled or have leading strange chars. In some
cases the whole 
> charset seems to be mixed up and can be restored only when I restart the X
deamon.
> Anything to worry about? Or even better: Some explanations? 

        This sounds odd.  The only trouble we have had with X and RTLinux is
when we were using floating point in our RTLinux modules and did not have
them specifically marked as doing so.  This caused no end of trouble to X.
Make sure that any thread that uses floating point has its floating point
bit set *before* it uses the floating point.  In other words, make sure the
floating point bit is set in the init_module before the thread is created
(using thread attributes and pthread_attr_setfp_np), or in the thread itself
before it uses the floating point (using pthread_setfp_np).

        If that is not the problem, you may be using a global variable in
your module that conflicts with a kernel variable name.  You would, however,
have to be very unlucky.  You can always check to make sure none of your
variables conflict with /proc/ksyms.

        Which brings up a new question for me: How do I specify that a
variable is static to a module?  In our current system, we build a module
from *many* source files - is there some way to mark the data that must be
global among these source files as static so that it is not global beyond
the module?

Regards,

Steve Cohen

-- [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