From owner-freebsd-stable@FreeBSD.ORG Sat Aug 9 11:56:51 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 836291065671; Sat, 9 Aug 2008 11:56:51 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from acme.spoerlein.net (cl-43.dus-01.de.sixxs.net [IPv6:2a01:198:200:2a::2]) by mx1.freebsd.org (Postfix) with ESMTP id 361B18FC18; Sat, 9 Aug 2008 11:56:50 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from roadrunner.spoerlein.net (e180174176.adsl.alicedsl.de [85.180.174.176]) by acme.spoerlein.net (8.14.2/8.14.2) with ESMTP id m79BulZo002094 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 9 Aug 2008 13:56:48 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: from roadrunner.spoerlein.net (localhost [127.0.0.1]) by roadrunner.spoerlein.net (8.14.2/8.14.2) with ESMTP id m79Buh2f005831 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 Aug 2008 13:56:43 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from uqs@localhost) by roadrunner.spoerlein.net (8.14.2/8.14.2/Submit) id m79BugKI005830; Sat, 9 Aug 2008 13:56:42 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Sat, 9 Aug 2008 13:56:42 +0200 From: Ulrich Spoerlein To: Eugene Grosbein Message-ID: <20080809115642.GB1798@roadrunner.spoerlein.net> Mail-Followup-To: Eugene Grosbein , John Baldwin , freebsd-stable@freebsd.org References: <20080627031233.9DC4945047@ptavv.es.net> <200808081249.28513.jhb@freebsd.org> <20080809092200.GA70050@svzserv.kemerovo.su> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080809092200.GA70050@svzserv.kemerovo.su> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-stable@freebsd.org, John Baldwin Subject: Re: Problem with /boot/loader [A new patch] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2008 11:56:51 -0000 On Sat, 09.08.2008 at 17:22:01 +0800, Eugene Grosbein wrote: > On Fri, Aug 08, 2008 at 12:49:28PM -0400, John Baldwin wrote: > > > My realization this morning is that software interrupts ('int X') in real mode > > disable interrupts just like hardware interrupts do. Thus, my patch changes > > BTX to disable interrupts for both cases 1) and 2) now. I think this will > > fix the hangs. I'm still including the code to explicitly initialize the > > eflags for user requests to a known-good value. It still has interrupts > > enabled which means that case 3) should know always run with interrupts > > enabled (which is the desired state), but the client can disable interrupts > > in the eflags in the vm86 structure if desired. > > > > The updated patch (same URL, new patch) is at > > http://www.FreeBSD.org/~jhb/patches/btx_hang.patch > > Sigh, it does not fix my problem described here: > > http://groups.google.ru/group/muc.lists.freebsd.stable/browse_thread/thread/538039f40b469e2a > > I've just updated my 7.0-STABLE to latest sources, applied your patch > using "cd /usr/src; patch -p6 < ~/btx_hang.patch", it has applied cleanly. > Then I've rebuilt and reinstalled kernel and world and rebooted. > My problem persists as it was. I'm not sure about which piece of code you are talking here (boot0, boot1, boot2, loader?) But if it's one of the former, you dont need to installworld, but install new boot blocks using either fdisk -B or bsdlabel -B (or both). hth, Ulrich Spoerlein -- It is better to remain silent and be thought a fool, than to speak, and remove all doubt.