Date: Thu, 02 May 1996 15:21:55 -0400 From: Pace Willisson <pace@blitz.com> To: Sujal Patel <smpatel@umiacs.umd.edu> Cc: emulation@freebsd.org Subject: Re: New DOS emulator snapshot (fwd) Message-ID: <199605021921.PAA16971@mytus.blitz.com> In-Reply-To: Your message of "Thu, 02 May 1996 14:02:35 EDT." <Pine.NEB.3.92.960502140222.214E-100000@xi.dorm.umd.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
I tried to compile doscmd-19960502 on bsdi 2.0.1, and I got a lot of errors. Do you plan to stay compatible with bsdi 2.0.1? 2.1? It appears I at least need an update to gcc to handle dos.h: typedef struct { u_char drive; ... } __attribute__((__packed__)) find_block_t; The compiler in 2.0.1 is gcc 2.6.3. What version supports this __packed__ stuff? I also had to change doscmd.h (see below) to get by some changes in the frame definitions handling. (I don't know if it is actually reasonable to just import the freebsd 2.1 definitions - I was planning to at least give it a shot before I got blocked by the __packed__ thing.) If you're pretty sure you'll be able to keep the kernel interface the same on bsdi systems, then I will do some more work to make the current snapshot compile. Otherwise, I guess I won't really be able to track the project - I don't have any machines that I can poke around with the kernel on these days. Pace Only in doscmd.pace: AsyncIO.o Common subdirectories: doscmd/CVS and doscmd.pace/CVS diff -c doscmd/Makefile doscmd.pace/Makefile *** doscmd/Makefile Thu May 2 10:53:37 1996 --- doscmd.pace/Makefile Thu May 2 15:05:55 1996 *************** *** 1,5 **** --- 1,7 ---- # BSDI Makefile,v 2.6 1996/04/08 20:06:40 bostic Exp + CC = gcc + PROG= doscmd SRCS= AsyncIO.c ParseBuffer.c \ bios.c callback.c cpu.c dos.c cmos.c config.c cwd.c device.c disktab.c doscmd.c \ Only in doscmd.pace: Makefile~ Only in doscmd.pace: ParseBuffer.o Only in doscmd.pace: bios.o Only in doscmd.pace: callback.o Only in doscmd.pace: cpu.o Only in doscmd.pace: crt0.o diff -c doscmd/doscmd.h doscmd.pace/doscmd.h *** doscmd/doscmd.h Thu May 2 05:32:19 1996 --- doscmd.pace/doscmd.h Thu May 2 15:05:38 1996 *************** *** 51,56 **** --- 51,93 ---- #include <machine/vm86.h> #endif + #ifdef bsdi + struct sigcontext_freebsd { + int sc_onstack; /* sigstack state to restore */ + int sc_mask; /* signal mask to restore */ + int sc_esp; /* machine state */ + int sc_ebp; + int sc_isp; + int sc_eip; + int sc_efl; + int sc_es; + int sc_ds; + int sc_cs; + int sc_ss; + int sc_edi; + int sc_esi; + int sc_ebx; + int sc_edx; + int sc_ecx; + int sc_eax; + # define sc_sp sc_esp + # define sc_fp sc_ebp + # define sc_pc sc_eip + # define sc_ps sc_efl + #define sc_eflags sc_efl + }; + #define sigcontext sigcontext_freebsd + + struct sigframe { + int sf_signum; + int sf_code; + struct sigcontext *sf_scp; + char *sf_addr; + sig_t sf_handler; + struct sigcontext sf_sc; + }; + #endif + #include "dos.h" #include "callback.h" #include "cwd.h" Only in doscmd.pace: doscmd.h~
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605021921.PAA16971>