From owner-freebsd-current Sat Sep 8 18:31:59 2001 Delivered-To: freebsd-current@freebsd.org Received: from midten.fast.no (midten.fast.no [213.188.8.11]) by hub.freebsd.org (Postfix) with ESMTP id EA4F737B403 for ; Sat, 8 Sep 2001 18:31:54 -0700 (PDT) Received: from fast.no (IDENT:tegge@midten.fast.no [213.188.8.11]) by midten.fast.no (8.9.3/8.9.3) with ESMTP id DAA16278; Sun, 9 Sep 2001 03:31:48 +0200 (CEST) Message-Id: <200109090131.DAA16278@midten.fast.no> To: michael_class@gmx.net, michaelc@space.ebiz-hp.com Cc: current@FreeBSD.ORG Subject: Re: boot() called on cpu #1 - hang From: Tor.Egge@fast.no In-Reply-To: Your message of "Sat, 8 Sep 2001 18:21:33 +0200 (MEST)" References: <20010908181649.G894-100000@localhost> X-Mailer: Mew version 1.70 on Emacs 19.34.1 Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Sun_Sep__9_03:31:20_2001)--" Content-Transfer-Encoding: 7bit Date: Sun, 09 Sep 2001 03:31:48 +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----Next_Part(Sun_Sep__9_03:31:20_2001)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit > Hello, > > on a 5.0-current i386-SMP system of today I am still getting on about > every second reboot the message: > > boot() called on cpu #1 > W Try applying the enclosed patch. - Tor Egge ----Next_Part(Sun_Sep__9_03:31:20_2001)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Index: vm_machdep.c =================================================================== RCS file: /home/ncvs/src/sys/i386/i386/vm_machdep.c,v retrieving revision 1.169 diff -u -r1.169 vm_machdep.c --- vm_machdep.c 4 Sep 2001 08:36:46 -0000 1.169 +++ vm_machdep.c 4 Sep 2001 19:58:38 -0000 @@ -424,8 +433,13 @@ { cpu_reset_proxy_active = 1; + wbinvd(); while (cpu_reset_proxy_active == 1) ; /* Wait for other cpu to see that we've started */ + cpu_reset_proxy_active = 3; + wbinvd(); + while (cpu_reset_proxy_active == 3) + ; /* Wait for other cpu to enable interrupts */ stop_cpus((1<