Dear all:
Is there any change in the way to use shared memory in Beta11(with 2.2.10
kernel)?
I have two systems with the same configuration(AMD450 and 128M main
memory), but one has RTLinux1.1+Kernel2.0.36 installed while the other has
Beta11+Kernel2.2.10. I setup 
4092K shared memory pool for use(append="mem=126980k". Shared Memory pool
base address is 0x7C01000). The following piece of code works well in
RTLinux1.1, but it cause segmentation fault in Beta11+Kernel2.2.10.

#define __KERNEL__
#define MODULE

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/version.h>

int init_module(void)
{
        int *data1;

        data1 = (int *)0x7C01000;

        *data1 = 3;
        return 0;
}

void cleanup_module(void)
{
        printk("Game Over\n");
}

In Beta11+Kernel2.2.10, error message will be printed to the console:
<1>Unable to handle kernel paging request at virtual address 07c01000
<1>current->tss.cr3 = 051b9000, %cr3 = 051b9000
<1>*pde = 00000000
<4>Oops: 0002
<4>CPU:    0


Any suggestions will be greatly appreciated.

Best Wishes
Daniel
--- [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