Subject: Re: is mmap on /dev/mem broken on sparc64?
To: Michael <macallan18@earthlink.net>
From: Sean Davis <dive@endersgame.net>
List: port-sparc64
Date: 03/13/2005 11:51:36
On Sun, Mar 13, 2005 at 11:48:01AM -0500, Michael wrote:
> Hello,
> 
> > > Why do you think that ROM is already mapped into kernel address space?
> > 
> > I don't. But it was strongly implied by the fact that another user was able
> > to dump the ROM from their Matrox video card on a macppc machine.
> On macppc kernel virtual addresses are more or less physical addresses. 
> Hmm, I always thought /dev/mem was for /physical/ memory, not kernel address
> space ( that's /dev/kmem, isn't it? ) so reading PCI_BASE+BAR_CONTENT should work.

According to the mem manpage, you're correct. /dev/mem is physical memory,
/dev/kmem is kernel memory. Whether or not that's in sync with reality, I'm
not sure.

- Sean

--
 _
( ) ASCII Ribbon Campaign
 X
/ \ For Plain Text Email