Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Sep 1998 09:26:30 +0200 (SAT)
From:      John Hay <jhay@mikom.csir.co.za>
To:        Tor.Egge@fast.no
Cc:        freebsd-current@FreeBSD.ORG, freebsd-smp@FreeBSD.ORG
Subject:   Re: Weired top display at smp current kernel from today
Message-ID:  <199809260726.JAA06562@zibbi.mikom.csir.co.za>
In-Reply-To: <199809252024.WAA00593@midten.fast.no> from "Tor.Egge@fast.no" at "Sep 25, 98 10:24:58 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809260726.JAA06562>