Subject: Re: question about mmap
To: Park Chan-youn <phygeeks@gmail.com>
From: Eduardo Horvath <eeh@NetBSD.org>
List: tech-kern
Date: 03/11/2005 19:33:07
On Fri, Mar 11, 2005 at 09:43:50AM +0900, Park Chan-youn wrote:

> For example, what I want to see is this
> 
> ----
> 0x80800200: 00 02 00 00 04 02 00 00 08 02 00 00 0c 02 00 00
> 0x80800210: 10 02 00 00 14 02 00 00 18 02 00 00 1c 02 00 00

> ----
> The above is printed in kernel. But, when printed using the address
> given through the mmap, the following is shown.
> ----
> 0x00000200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
> 0x00000210: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
> ----

The 0xffff values are usually generated when trying to access
something that's simply not there or not responding to bus
cycles.  

Check that the PA you are trying to mmap in matches the one
that's being used by the bus_space*() accessor routines.

Eduardo