Unless you need to have dma access to the memory it is a whole lot easier to use 
mbuff.  It comes packaged with RTL and there are examples of how to use it.

-----Original Message-----
From: Marc LE DOUARAIN [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 9:02 AM
To: [EMAIL PROTECTED]
Cc: Patrick VIGOT
Subject: [rtl] Shared memory with Lilo and __va()


Hello,

I've tried sharing memory on RTLinux as explained in the Shared Memory HOWTO :

I've 64Megs RAM on the computer...
With Lilo, I set to use only 31m with append="mem=31m"

I do the following define :
#define ADDRESS (31*0x100000)

In the real-time module , I have the following :
my_structure * Params = ADDRESS;

And when I insmod the real-time module, I get the following error :
"Unable to handle kernel paging request"

Any idea?


I've tried the same code on another computer (128Megs RAM) using also 31m with Lilo, 
and all is working perfectly...

I've tried on the first computer with incorrect #define ADDRESS (5*0x100000), strange, 
I've no more the error, but datas seems not to be shared...

Many Thanks.

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