home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 16191 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  1.6 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!darkstar.UCSC.EDU!cats.ucsc.edu!davids
  2. From: davids@cats.ucsc.edu (Dave Schreiber)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: physical memory protection with MMU
  5. Date: 22 Nov 1992 05:15:15 GMT
  6. Organization: University of California; Santa Cruz
  7. Lines: 25
  8. Message-ID: <1en513INNguv@darkstar.UCSC.EDU>
  9. References: <paulk.28d4@terapin.com> <1eccinINNbv2@darkstar.UCSC.EDU> <1992Nov21.183408.23912@newshub.ccs.yorku.ca>
  10. NNTP-Posting-Host: si.ucsc.edu
  11.  
  12.  
  13. In article <1992Nov21.183408.23912@newshub.ccs.yorku.ca> wlanders@nexus.yorku.ca (W L Anderson) writes:
  14. >Since in a protected memory environment, you are going to have to
  15. >keep  track of what memory is allocated by which process, and the
  16. >problem seems to be with memory that is being  used  to  pass  to
  17. >other tasks is not always allocated as MEMF_PUBLIC, why not put a
  18. >hook into the EXEC message passing code so that when  a  task  is
  19. >about  to  pass  a message, you check to see if it's MEMF_PUBLIC.
  20. >If it isn't, make it MEMF_PUBLIC.
  21.  
  22. The drawback is that the message could contain a pointer to some other
  23. chunk of memory that isn't declared MEMF_PUBLIC.  While Exec could make
  24. the message's memory MEMF_PUBLIC if needed, since it doesn't enforce a
  25. particular structure upon messages, it wouldn't know that the message
  26. contained a pointer and thus couldn't change the type of the second
  27. memory block.  The process that received the message would then crash
  28. when it tried to access that memory.
  29.  
  30. >Tom Hayko
  31. >wlanders@nexus.yorku.ca
  32.  
  33.  
  34.  
  35. -- 
  36. Dave Schreiber  "Look.  Don't touch."  davids@cats.ucsc.edu (until 6/20/93)
  37.