Andrew Hooper wrote:
>
> I have 31744k installed + 1024k shared (chewed up by the onboard video
> card)
> that leaves me at a base of 31744k - 1024 should give me a base of 30720k
> I set the append statement in the lilo.conf to......
> append="30720k".
>
> In the common.h I added......
> #define BASE_ADDRESS (30720 * 0x400)
>
Hi ,
when you want to use this part of memory, you need to declare it.(
Like declaration of memory space in a PCI card).
So you need to do 'remap' your memory space with io_remap()
exemple :
typedef struct
{
int a ;
....
} TShared ;
TShared *my_shared ;
my_shared = (TShared *)ioremap(BASE_ADDRESS,sizeof(TShared)) ;
my_shared->a = .... ;
// you can access your shared memory with my_shared pointer
// (using Virtual Address against Physical Address ... )
// DON'T FORGET at the end ...
iounmap(my_shared) ;
Christophe.
--
Kumsta Christophe
<[EMAIL PROTECTED]>
Real-Time System developper
RT-Linux/RTAI ( Use the Source Luck !)
--- [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/