From owner-freebsd-stable@FreeBSD.ORG Sat Aug 9 21:17:46 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 F21B9106567C for ; Sat, 9 Aug 2008 21:17:46 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 6E9668FC3B for ; Sat, 9 Aug 2008 21:17:46 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [IPv6:2001:470:1f11:75:2a0:d2ff:fe18:8b38]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m79LHep7043675; Sat, 9 Aug 2008 17:17:40 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Eugene Grosbein Date: Sat, 9 Aug 2008 17:17:31 -0400 User-Agent: KMail/1.9.7 References: <20080627031233.9DC4945047@ptavv.es.net> <200808081249.28513.jhb@freebsd.org> <20080809092200.GA70050@svzserv.kemerovo.su> In-Reply-To: <20080809092200.GA70050@svzserv.kemerovo.su> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808091717.31780.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:2001:470:1f11:75::1]); Sat, 09 Aug 2008 17:17:40 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/7995/Sat Aug 9 14:55:20 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-stable@freebsd.org 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 21:17:47 -0000 On Saturday 09 August 2008 05:22:01 am 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. In addition to my earlier message, it would probably be good to narrow down what breaks the loader for you. For example, does it work ok over serial and only break on vidconsole? Also, if you just backout sys/boot/i386/btx to 7.0-release and leave the rest of the sys/boot tree at 7.0-stable, do you get a working loader? -- John Baldwin