Article View: comp.os.msdos.programmer
Article #586system hanging up in disk bios routine
From: Tom Almy
Date: Mon, 06 Apr 1992 21:11
Date: Mon, 06 Apr 1992 21:11
32 lines
1647 bytes
1647 bytes
I've written a TSR that reads from the serial port and writes data to the hard disk. The TSR only runs from the timer interrupt (0ch) when the "indos" flag is clear and the disk bios routine has not been entered (I have my own flag to check), OR from the 28H interrupt. I carefully set and restore the PSP, DTA, critial and ctrl-break int routines, and the ctrl-break flag around the code. I use my own stack. Now, when the system is heavily loaded by leaning on a key (I don't take the keyboard over), and heavy disk use from the TSR (the serial port is running 9600baud, and data is being stored on the disk), often the system will appear to "hang" for up to 30 seconds -- it is in the TSR, doing a DOS disk request, and sitting in the Disk BIOS (the disk light is on, as well). Then the system seems to recover and starts running again, with data loss from the serial port, of course, and an occasional, rare, disk corruption :-(. The situation is worsened by running on slower machines (one would expect that). Does anyone have any idea what's happening? And is there a cure? Please reply direct to me. I'll summarize if requested. Tom Almy toma@sail.labs.tek.com Standard Disclaimers Apply -- Tom Almy toma@sail.labs.tek.com Standard Disclaimers Apply
Technical Details
Message-ID:
<11758@sail.LABS.TEK.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!zephyr.ens.tek.com!tekgen!sail!tomaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zephyr.ens.tek.com!tekgen!sail!toma From: toma@sail.LABS.TEK.COM (Tom Almy) Newsgroups: comp.os.msdos.programmer Subject: system hanging up in disk bios routine Message-ID: <11758@sail.LABS.TEK.COM> Date: 6 Apr 92 21:11:43 GMT Reply-To: toma@sail.labs.tek.com Organization: Tektronix, Inc., Beaverton, OR. Lines: 32