I am debugging an
user space program that maps in some PCI memory using mmap via my device
driver. The program runs fine and is able access the PCI memory fine using
the returned pointer from mmap. However, when I am in gdb stepping through
the program, I get a "Cannot access memory at address 0x40231d00" message when I
try to use that pointer to examine memory.
The memory is mapped
at 0x40231000 and the size is 0x1000. I have added a mem region as
follows:
Num Enb Low
Addr High Addr
Attrs
1 y
0x40231000 0x40232000 rw 32 nocache
I am running Debian
linux version 2.4.19.
thanks,
Dave
Feng