From owner-freebsd-current Sat Nov 6 12:24:56 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 5B3B814E8F for ; Sat, 6 Nov 1999 12:24:50 -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 WAA41602; Sat, 6 Nov 1999 22:24:35 +0200 (SAT) (envelope-from jhay) From: John Hay Message-Id: <199911062024.WAA41602@zibbi.mikom.csir.co.za> Subject: Re: doscmd broken on current? In-Reply-To: <199911061841.MAA26019@free.pcs> from Jonathan Lemon at "Nov 6, 1999 12:41:57 pm" To: jlemon@americantv.com (Jonathan Lemon) Date: Sat, 6 Nov 1999 22:24:35 +0200 (SAT) Cc: jhay@mikom.csir.co.za, 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(): ------------ angel:/usr/src/usr.bin/doscmd > doscmd -bx23At init_path(3, /, (null)) init_path(4, /home/jhay/dos, (null)) CS: IP instruction AX BX CX DX DI SI SP BP SS DS ES 0000:7c00 jmp 0000:7c3e 0000 0000 0000 0000 0000 0000 7ffe 0000 9800 0000 0000 I v Illegal instruction angel:/usr/src/usr.bin/doscmd > ------------ Hmmm I see the sigreturn man page hasn't been updated, it still says that sigreturn takes a struct sigcontext * argument, while the signal.h file says it takes ucontext_t *. Now to try and figure out how this stuff is supposed to work. :-) John -- John Hay -- John.Hay@mikom.csir.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message