On Mon, Sep 29, 2003 at 03:48:43PM +0300, Erez Doron wrote: > if (-1==(mmap_fd=open(devname,O_RDWR))) {perror(devname);exit(1);}; > printf("fd=%d\r\n",mmap_fd); > printf("mem-mapping ...\r\n"); > if (-1==(mmapped=(unsigned int *)mmap((char > *)0,65536,PROT_READ|PROT_WRITE,MAP_FIXED,mmap_fd,0)))
What does your mmap implementation look like? are you sure its hooked in correctly into the driver's file operations struct and getting called? -- Muli Ben-Yehuda http://www.mulix.org
signature.asc
Description: Digital signature