From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 7851 invoked from network); 17 Mar 2000 21:53:41 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 17 Mar 2000 21:53:41 -0000 Received: from piglet.twiddle.net (piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA09577 for ; Fri, 17 Mar 2000 16:53:40 -0500 Received: (from rth@localhost) by piglet.twiddle.net (8.9.3/8.9.3) id NAA04375; Fri, 17 Mar 2000 13:53:35 -0800 Date: Fri, 17 Mar 2000 13:53:35 -0800 From: Richard Henderson To: Hannes Reinecke Cc: AXP Developers list Subject: Re: FIX: Permedia 2 driver XFree-4.0 Message-ID: <20000317135335.A4306@twiddle.net> References: <38D2429C.3CA5F950@hw.ac.uk> <38D244CA.DCBE1D26@civ.hw.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: <38D244CA.DCBE1D26@civ.hw.ac.uk> On Fri, Mar 17, 2000 at 02:44:26PM +0000, Hannes Reinecke wrote: > > ie use the code: > > > > lnxSBase = mmap((caddr_t)0, 0x400000000, /* yes, 16GB!!! */ > > PROT_READ | PROT_WRITE, > > MAP_SHARED, fd, > > (off_t) _bus_base_sparse()); > > > > Then it should oughta just work, AND be portable... > > Hmm, the above fix: does it work on all older machines ? No. That's what the HAE register is all about. EV4 has a 34-bit address bus. APECS and LCA have 4G of sparse space mapping 128M. It appears as if T2 has its 4G sparse space broken up into multiple hunks, the largest of which is 2G mapping only 64M. But that's from reading code not docs. EV5 has a 40-bit address bus. CIA and MCPCIA have 22G of sparse space in three hunks. The only one we use is 16G and maps 512M. r~