[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: [rtl] Shared Memory
Adam Meyerowitz wrote:
>
> ptr=(MyStruct *)__va(BASE_ADDRESS)
>
> Is this another case where I need to use ioremap?
Yes , if you use kernel 2.2.x , you need to remap your physical free
memory.
exemple :
typedef struct
{
int data1[56] ;
int data2[89] ;
char videobuffer[1024*768] ;
} TMap ;
TMap *mapping ;
mapping = (TMap *)ioremap(PHYSICAL_FREE_MEM_BASE,FREE_MEM_SIZE) ;
and then , use the virtual address pointer mapping structure ...
--
Kumsta Christophe
<kumsta@easynet.fr>
Real-Time System developper
RT-Linux/RTAI ( Use the Source Luck !)
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/