linux-mips
[Top] [All Lists]

Re: Should /dev/kmem support above 0x80000000 area?

To: Jun Sun <jsun@mvista.com>
Subject: Re: Should /dev/kmem support above 0x80000000 area?
From: Guido Guenther <guido.guenther@gmx.net>
Date: Mon, 11 Dec 2000 19:56:30 +0100
Cc: linux-mips@oss.sgi.com
In-reply-to: <3A358CEB.1B986EB7@mvista.com>; from jsun@mvista.com on Mon, Dec 11, 2000 at 06:26:51PM -0800
References: <20001209003222.A10669@bacchus.dhis.org> <Pine.GSO.3.96.1001211122115.18945B-100000@delta.ds2.pg.gda.pl> <20001211134133.A8720@faramir.physik.uni-konstanz.de> <3A358CEB.1B986EB7@mvista.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Mon, Dec 11, 2000 at 06:26:51PM -0800, Jun Sun wrote:
> Guido Guenther wrote:
> > 
> > On Mon, Dec 11, 2000 at 12:28:19PM +0100, Maciej W. Rozycki wrote:
> > > friends) by glibc.  At least XFree86 and SVGATextMode make use of these
> > > features.  I suppose it's the same for MIPS (I haven't checked, though).
> > Yes. xf86MapVidMem & friends use /dev/mem to mmap videomemory & iospace
> > independent of architecure.
> >  -- Guido
> 
> 
> I am surprised.  I thought /dev/mem is for accessing SYSTEM RAM.  (do a 'man'
I'd not call it system ram but rather ''visible address space'' or
something. If there's actually ''system ram'' or the fb of a graphics
card at a given address doesn't make a difference.

> on /dev/mem)  It is also confirmed by the code in drivers/char/mem.c.  If you
> want to access anything beyond 'high_memory", nothing is read.  
> 
> Note that drivers/char/mem.c is cross-platform code.  I am not sure how X
> would access video memory through /dev/mem on either MIPS or other platforms.
The newports REX3 for example is at (KSEG1 + 0x1f0f000) which is mmaped
by the xserver to access the REX3s registers.
 -- Guido

<Prev in Thread] Current Thread [Next in Thread>