I'm getting a strange behaviour with my shared memory setup
that I'm hoping someone can help me with...

I've done the following:

1) added append="mem=31m" to lilo.conf and run /sbin/lilo
2) in the loadable module:

typedef struct {
        int plateTemp;
        int bufferTemp;
       ....
} SharedMemoryStruct;

SharedMemoryStruct *sharedMemory;

int init_module( void ) 
{
        sharedMemory = (SharedMemoryStruct *) 0x1f00000;
        sharedMemory->plateTemp = 0;
        ....
}

But upon loading the module, I receive the following error:

"Unable to handle kernel paging request at virtual address c1f00000"

If I change the '...plateTemp = 0' line to '...bufferTemp=0' the 
error message changes to virtual address c1f00004.

I'm at a loss to determine why the kernel is trying to reference
c1f.... rather than 1f....  The address is correct with the exception
of the topmost nybble.

I'm using kernel 2.0.34.  So I don't think I had to use __va().

Any suggestions would be greatly appreciated!

Thanks,
Jim.

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