🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #4053

Question about DOS non-reentrancy.

#4053
From: Bob Davis
Date: Fri, 28 Dec 1990 15:48
29 lines
2098 bytes
	All the information I have read about avoiding reentrancy
to DOS seems to stress that the problem is in ruining the DOS internal
stack areas. 

	Seems to me that there must be more to it than just worrying
about protection of the internal stacks. Aren't there certain RAM locations
also used globally by DOS (aren't those areas starting at 40:00 and 50:00
examples of such regions?) that can be modified and therefore ruined by 
reentry even though measures have been taken to protect the stacks?

	In TSRs, all the "DOS Idle" (Int 28h), "InDOS" and "Critical Error"
flag checking techniques do not protect me from TSR code that modifies global
RAM storage areas and therefore ruins it for successful DOS reentrancy,
do they?

	Is there really NO practical way to do context switching under DOS?
No way to save ALL the bytes of the broad-sense environment (globally-used 
storage areas, stack regions, etc.) and then simply not worry about re-entering
DOS code since we are going to restore the environment when we are done?
What kills it for such an approach?

	Thanks.
_____________________________________________________________________________
Bob Davis, UofALA alum \\ INTERNET: sonny@trantor.harris-atd.com  |  _   _  |
Harris Corporation, ESS \\    UUCP: ...!uunet!x102a!trantor!sonny |_| |_| | |
Advanced Technology Dept.\\ AETHER: K4VNO          |==============|_/\/\/\|_|
PO Box 37, MS 3A/1912     \\ VOICE: (407) 727-5886 | I SPEAK ONLY | |_| |_| |
Melbourne, FL 32902        \\  FAX: (407) 729-2537 | FOR MYSELF.  |_________|
Technical Details
Message-ID: <5160@trantor.harris-atd.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!wuarchive!rex!uflorida!mlb.semi.harris.com!trantor.harris-atd.com!charybdis!sonny

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!wuarchive!rex!uflorida!mlb.semi.harris.com!trantor.harris-atd.com!charybdis!sonny
From: sonny@charybdis.harris-atd.com (Bob Davis)
Newsgroups: comp.os.msdos.programmer
Subject: Question about DOS non-reentrancy.
Message-ID: <5160@trantor.harris-atd.com>
Date: 28 Dec 90 15:48:58 GMT
Sender: news@trantor.harris-atd.com
Reply-To: sonny@trantor.harris-atd.com (Bob Davis)
Organization: Advanced Technology Dept., Harris ESS, Melbourne, FL
Lines: 29