home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 22364 < prev    next >
Encoding:
Text File  |  1993-01-01  |  1.5 KB  |  52 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!wupost!emory!gatech!enterpoop.mit.edu!mojo.eng.umd.edu!chad
  3. From: chad@src.umd.edu (R Michael McMahon)
  4. Subject: DOS emulator patch for 0.99p1
  5. Message-ID: <1993Jan01.165229.28293@eng.umd.edu>
  6. Date: Fri, 01 Jan 93 16:52:29 GMT
  7. Organization: College of Engineering, Maryversity von Uniland, College Park
  8. Sender: chad@eng.umd.edu (R Michael McMahon)
  9. Originator: chad@ampere.src.umd.edu
  10. Lines: 40
  11.  
  12.  
  13. Enclosed is a simple patch to get the dos emulator working again.
  14. It had been broken since the 'writable-strings' kernel change in
  15. 0.98p5 due to segmentation fault in boot(). Lotus 1-2-3 is now working
  16. on my system, but the necessary patches are not really ready for 
  17. public consumption... I'm having a hard time getting information
  18. on the *correct* response to various inb() and outb() calls.
  19.  
  20. Mike McMahon    chad@src.umd.edu
  21.  
  22. ----------------------------------------------------------------------
  23. *** emu.c    Thu Nov 26 07:19:53 1992
  24. --- emu.new    Fri Jan  1 11:38:35 1993
  25. ***************
  26. *** 1199,1204 ****
  27. --- 1199,1210 ----
  28.       do_int(3);
  29.   }
  30.   
  31. + void sigdummy(int sig)
  32. + {
  33. +     printf("SIGNAL %d received\n", sig);
  34. +     show_regs();
  35. + }
  36.   #define SETSIG(sig, fun)    sa.sa_handler = fun; \
  37.                   sa.sa_flags = 0; \
  38.                   sa.sa_mask = 0; \
  39. ***************
  40. *** 1224,1230 ****
  41. --- 1230,1238 ----
  42.       disk_init();
  43.       termioInit();
  44.       clear_screen(screen, 7);
  45. +     SETSIG(SIGSEGV, sigdummy);
  46.       boot(hdiskboot? hdisktab : disktab);
  47. +     SETSIG(SIGSEGV, sigsegv);
  48.       fflush(stdout);
  49.       itv.it_interval.tv_sec = 0;
  50.       itv.it_interval.tv_usec = UPDATE;
  51.