From: chad@src.umd.edu (R Michael McMahon) Subject: DOS emulator patch for 0.99p1 Date: Fri, 01 Jan 1993 16:52:29 GMT
Enclosed is a simple patch to get the dos emulator working again.
It had been broken since the 'writable-strings' kernel change in
0.98p5 due to segmentation fault in boot(). Lotus 1-2-3 is now working
on my system, but the necessary patches are not really ready for
public consumption... I'm having a hard time getting information
on the *correct* response to various inb() and outb() calls.
Mike McMahon chad@src.umd.edu
======================================================================
*** emu.c Thu Nov 26 07:19:53 1992
--- emu.new Fri Jan 1 11:38:35 1993
***************
*** 1199,1204 ****
--- 1199,1210 ----
do_int(3);
}
+ void sigdummy(int sig)
+ {
+ printf("SIGNAL %d received\n", sig);
+ show_regs();
+ }
+
#define SETSIG(sig, fun) sa.sa_handler = fun; \
sa.sa_flags = 0; \
sa.sa_mask = 0; \
***************
*** 1224,1230 ****
--- 1230,1238 ----
disk_init();
termioInit();
clear_screen(screen, 7);
+ SETSIG(SIGSEGV, sigdummy);
boot(hdiskboot? hdisktab : disktab);
+ SETSIG(SIGSEGV, sigsegv);
fflush(stdout);
itv.it_interval.tv_sec = 0;
itv.it_interval.tv_usec = UPDATE;