Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Nov 1999 15:01:40 +0200 (SAT)
From:      John Hay <jhay@mikom.csir.co.za>
To:        mike@smith.net.au (Mike Smith)
Cc:        jlemon@americantv.com (Jonathan Lemon), current@FreeBSD.ORG
Subject:   Re: doscmd broken on current?
Message-ID:  <199911071301.PAA54812@zibbi.mikom.csir.co.za>
In-Reply-To: <199911070903.BAA10454@dingo.cdrom.com> from Mike Smith at "Nov 7, 1999 01:03:02 am"

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




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