From owner-freebsd-current Sat Sep 26 00:27:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA02974 for freebsd-current-outgoing; Sat, 26 Sep 1998 00:27:10 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA02961; Sat, 26 Sep 1998 00:26:58 -0700 (PDT) (envelope-from jhay@zibbi.mikom.csir.co.za) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.9.1/8.9.1) id JAA06562; Sat, 26 Sep 1998 09:26:30 +0200 (SAT) From: John Hay Message-Id: <199809260726.JAA06562@zibbi.mikom.csir.co.za> Subject: Re: Weired top display at smp current kernel from today In-Reply-To: <199809252024.WAA00593@midten.fast.no> from "Tor.Egge@fast.no" at "Sep 25, 98 10:24:58 pm" To: Tor.Egge@fast.no Date: Sat, 26 Sep 1998 09:26:30 +0200 (SAT) Cc: freebsd-current@FreeBSD.ORG, freebsd-smp@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Sounds like a bug in the ELF image activator. It's possible that > > something got bent when the corefile writing code went in (waves dead > > poultry speculatively). > > It is a bug in cpu_fork(). > > pcb_mpnest should be initialized to 1. > > Index: vm_machdep.c > =================================================================== > RCS file: /home/ncvs/src/sys/i386/i386/vm_machdep.c,v > retrieving revision 1.109 > diff -u -r1.109 vm_machdep.c > --- vm_machdep.c 1998/08/18 07:46:58 1.109 > +++ vm_machdep.c 1998/09/25 20:22:52 > @@ -636,6 +649,9 @@ > * pcb2->pcb_onfault: cloned above (always NULL here?). > */ > > +#ifdef SMP > + pcb2->pcb_mpnest = 1; > +#endif > #ifdef VM86 > /* > * XXX don't copy the i/o pages. this should probably be fixed. > This fix it for me. ... This fix seems to be binary format neutral, so why didn't it happen with an aout /sbin/init? John -- John Hay -- John.Hay@mikom.csir.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message