From owner-freebsd-ppc Wed Jul 24 15:21:24 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9882C37B400 for ; Wed, 24 Jul 2002 15:21:22 -0700 (PDT) Received: from gt3.OntheNet.com.au (nt.com.au [203.13.70.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 810CB43E67 for ; Wed, 24 Jul 2002 15:21:20 -0700 (PDT) (envelope-from peterg@ptree32.com.au) Received: from ptree32.com.au (CPE-203-45-246-228.qld.bigpond.net.au [203.45.246.228]) by gt3.OntheNet.com.au (8.11.4/8.11.4) with ESMTP id g6OMOLb69732 for ; Thu, 25 Jul 2002 08:24:21 +1000 (EST) Message-ID: <3D3F2C98.3D12611@ptree32.com.au> Date: Thu, 25 Jul 2002 08:39:20 +1000 From: Peter Grehan Organization: Ptree32 Pty Ltd X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-ppc@FreeBSD.ORG Subject: Re: psim non-blocking i/o References: <3D3CA108.5CCABC4E@ptree32.com.au> <1027517635.3d3eacc358a89@www.wantpackets.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Andy, > I did this with partial success. This only seems to work with the stand-alone > version, and did not work for the internal version (internal to gdb). I was > using gdb-5.2 sources. Ah yes, I did find the same problem. I'll have a look into why it's blocking with psim-gdb and not psim. I'm also using 5.2. > pmap_release: does not really exist (HELP!) This isn't too bad. All that will happen is that the system will eventually use all NPMAPS unique id's to put into segment descriptors. The fix (taken from NetBSD) is: void pmap_release(pmap_t pmap) { int idx, mask; /* * Free segment register's VSID */ if (pmap->pm_sr[0] == 0) panic("pmap_release"); idx = VSID_TO_HASH(pmap->pm_sr[0]) & (NPMAPS-1); mask = 1 << (idx % VSID_NBPW); idx /= VSID_NBPW; pmap_vsid_bitmap[idx] &= ~mask; } later, Peter. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message