Dear Tomek,

I applied your suggestion, with some variants, because on this test I am
running the 2.0.37 kernel with RTL1.3 which means the ioremap should be
changed with vremap which returns a virtual address that is used to access
the real physical address.
So with the following modification
 sptr = (STRUCTTEST *) vremap(BASE_ADDRESS, 8);
it does work on the AMD5x86 and on the 386.

The question that comes out now is:
Why the code I sent was working perfectly on the Pentium PC104 and on the
developping system (PentiumMMX) even without the vremap and it was not on
the AMD and 386 ? Do you have any ideas ?

Thank you

Ciao
Giovanni


----- Original Message -----
From: Tomasz Motylewski <[EMAIL PROTECTED]>
To: Giovanni Racciu <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, May 26, 2000 1:38 PM
Subject: Re: [rtl] shared mem


> On Fri, 26 May 2000, Giovanni Racciu wrote:
>
> > #define BASE_ADDRESS (15 * 0x100000)
>
> >  sptr = (STRUCTTEST *) BASE_ADDRESS;
>
> You probably need
> sptr = (STRUCTTEST *) ioremap(BASE_ADDRESS);
>
>
> Or alternatively include mbuff.h and use mbuff.o module.
>
> --
> Tomek
>

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