Dresner, Norman A. wrote:
>
> The saga continues:
>
> I found that the file /usr/include/asm/uaccess.h doesn't exist in 2.0.x and
> commented out the #include in rtai_smh.c
>
> I found in the file that contains the directions for upgrading drivers from
> 2.0.x to 2.2.x the information that for a single processor the functions
> spin_lock_irqsave() and spin_unlock_irqrestore() are essentially equivalent
> to the old functions save_flags() and restore_flags() and got past that
> stumbling block.
>
> I also found that I had to remove "-D__SMP__" in the makefile. After I did
> that, I could compile and insmod the driver.
>
> Then I tried the tests in the test/ directory.
>
> There is a #define in the file rtai_shm.h which is used to define the
> pre-processor macros rtai_kmalloc() and rtai_kfree() which uses a symbol
> "__this_module" and in the corresponding position in the argument list of
> the real functions rtai_kmalloc_f() and rtai_kfree_f() were arguments called
> "pid". In desperation I used a command-line define "-D__this_module=..."
> with an arbitrary constant as the value (but something to which the
> &operator could be applied). This allows the make to succeed.
>
> When I ran the tests, I got the following:
> 1) itest terminates with a Segmentation fault
> 2) ctest also terminates with a Segmentation fault
>
> I'm not sure that for my application it's worth much more time spent on
> trying to get this to work in 2.0.x unless someone knows what
> "__this_module" is supposed to be and/or has already gotten the portable_shm
> device to work in 2.0.x
Hi,
__this_module is what its name means and is used in the shm module, much
as a pid, to identify a module requesting shm.
There is no reason to insist blindly on using the module as it is for
2.0.xx. Sorry but I do not want to care for backward compatibilty. I've
got enough troubles on 2.2.xx and keeping an eye on 2.3.xx.
Ciao, Paolo.
--- [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/