Memory Access Problem

From: Rich.Liu@ite.com.tw
Date: Tue May 15 2001 - 01:36:51 EST


I have a problem in kernel 2.4.4

I use readw to access memory below 1MB , report "Segmentation fault"
and stall in memory

simple code below (this will get paraller port)
==
int init_module(void){
        unsigned int *BIOS_Data=(unsigned int *)0x400;
        u32 test;
                test = readw(BIOS_Data);

         printk(KERN_CRIT "0x400:%x\n",test);
}
==
but those can work in kernel 2.2.19 , no problem .

can anyone help me ?

--
Richliu                                                       

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 15 2001 - 21:00:39 EST