From owner-freebsd-current Sun Nov 7 5:57:11 1999 Delivered-To: freebsd-current@freebsd.org Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by hub.freebsd.org (Postfix) with ESMTP id D865B14F6D for ; Sun, 7 Nov 1999 05:55:58 -0800 (PST) (envelope-from jhay@zibbi.mikom.csir.co.za) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.9.3/8.9.3) id PAA54812; Sun, 7 Nov 1999 15:01:40 +0200 (SAT) (envelope-from jhay) From: John Hay Message-Id: <199911071301.PAA54812@zibbi.mikom.csir.co.za> Subject: Re: doscmd broken on current? In-Reply-To: <199911070903.BAA10454@dingo.cdrom.com> from Mike Smith at "Nov 7, 1999 01:03:02 am" To: mike@smith.net.au (Mike Smith) Date: Sun, 7 Nov 1999 15:01:40 +0200 (SAT) Cc: jlemon@americantv.com (Jonathan Lemon), current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (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 > > > >Is doscmd working for anyone on current? Here I just get: > > > > > > > >--------- > > > > > > > >I have tried it on a single processor and SMP -current and both do the same > > > >thing. I had it working a while back, so I think my configuration is ok. > > > > > > > >Ideas on how to look into this? > > > > > > Start by invoking it with the various debug/trace options. I'd guess > > > that it may be broken by the signal-related changes that were made > > > recently. > > > > hehehe It dies at the very first vm86 instruction, so I guess something > > isn't setup correctly to enter vm86 mode via the sigreturn(): > > I bet that someone got smart and disallowed PSL_VM in eflags on a > return to user-mode. Nope it wasn't that bad. I'm not sure if this is the correct fix, but with this patch I can boot dos again. Can someone with more knowledge of the signal stuff look and say if this is correct/enough? The redirector don't work though. I just get a "File not Found" error when trying to dir any of the redirected directories. John -- John Hay -- John.Hay@mikom.csir.co.za Index: doscmd.c =================================================================== RCS file: /home/ncvs/src/usr.bin/doscmd/doscmd.c,v retrieving revision 1.11 diff -u -r1.11 doscmd.c --- doscmd.c 1999/10/13 23:48:35 1.11 +++ doscmd.c 1999/11/07 12:50:06 @@ -258,6 +258,7 @@ sigemptyset(&uc.uc_sigmask); sigaltstack(NULL, &uc.uc_stack); + uc.uc_mcontext.mc_onstack = uc.uc_stack.ss_flags; if (tmode) tracetrap(REGS); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message