[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rép. : Re: [rtl] Shared memory with Lilo and __va()



Thanks for your response.

Yes, I use Kernel 2.2.


>>> ndrez@att.net 18/05/01 02h57 >>>
What kernel version?  If it's 2.2.x or later, you need to call ioremap() to
get a virtual address to use.

    Norm

----- Original Message -----
From: Marc LE DOUARAIN <mledouarain@garbarini.com>
To: <rtl@fsmlabs.com>
Cc: Patrick VIGOT <pvigot@garbarini.com>
Sent: Thursday, May 17, 2001 12:02 PM
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 majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/ 
>
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org 
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/