Subject: Re: Fun w/ 4GB RAM
To: None <port-i386@netbsd.org>
From: Jason R Thorpe <thorpej@zembu.com>
List: port-i386
Date: 04/21/2000 08:31:25
On Thu, Apr 20, 2000 at 08:16:45PM -0700, Jonathan Stone wrote:

 > Changing physmem from an int to a physaddr_t should fix the
 > memory-size problem. knowing Jason he probably caught that one already.
 > No idea where else sign extension will bite.

Actually, that's not necessary; physmem is a page count.  Turns out
there were integer overflow bugs, but different ones than what I
fixed on the Alpha already.

 > But does this machine really have 4GB - 96 Mbytes? 96Mbytes of
 > physical address space doesn't sound like a lot for PCI memory devices
 > (frame grabbers, linear-mode video cards), etc.  Or is it?

It could be that the firmware clips the memory after determining how
much space the PCI bus needs.  Plus, even a linear-mode video card
is only going to have, what, 8M, 16M, 32M of RAM on it?  That's still
going to leave plenty for most devices (which only use a page each).

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>