home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / atari / st / tech / 4394 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.6 KB  |  41 lines

  1. Newsgroups: comp.sys.atari.st.tech
  2. Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!ilepore
  3. From: ilepore@nyx.cs.du.edu (Ian Lepore)
  4. Subject: Re: Can a TSR Malloc()?
  5. Message-ID: <1992Aug12.181935.11706@mnemosyne.cs.du.edu>
  6. Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
  7. Organization: University of Denver, Dept. of Math & Comp. Sci.
  8. References: <sourada.713595993@vincent1.iastate.edu> <1992Aug12.095216.1@uwovax.uwo.ca>
  9. Date: Wed, 12 Aug 92 18:19:35 GMT
  10. Lines: 29
  11.  
  12. Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept.
  13. X-Disclaimer: Nyx is a public access Unix system run by the University
  14.     of Denver for the Denver community.  The University has neither
  15.     control over nor responsibility for the opinions of users.
  16.  
  17.  > can a TSR Malloc()
  18.  > [basically no, because the wrong process would own the memory]
  19.  
  20.  I've always thought it should be possible to temporarily change TOS's _run
  21. variable temporarily so that it points to the TSR's basepage during the 
  22. Malloc() then gets set back to the proper value.  But, I've never tried it,
  23. it just seemed like a possibility to investigate (despite the fact that 
  24. Atari warns you to "look but don't touch" on that variable).
  25.  
  26.  > any current tricks will break under MultiTOS and MiNT
  27.  
  28.  Well then Shame On You for not fixing this problem, Eric. Don't you know
  29. we've all been counting on you to undo absolutely every bad design decision
  30. Atari initially made?  :-)
  31.  
  32.  Seriously, though...it would be nice to have an alternate form of Malloc()
  33. usable by TSRs and desk accessories...something where you could pass a  
  34. pointer to the basepage of the process that should own the memory.
  35.  
  36.  
  37. --
  38. - Ian
  39. (void *) where prohibited by law
  40.  
  41.