home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / hardware / 13984 < prev    next >
Encoding:
Text File  |  1992-07-21  |  2.4 KB  |  52 lines

  1. Newsgroups: comp.sys.mac.hardware
  2. Path: sparky!uunet!gatech!news.byu.edu!eff!ckd
  3. From: ckd@eff.org (Christopher Davis)
  4. Subject: Re: 040 caching
  5. In-Reply-To: gmw1@cunixa.cc.columbia.edu's message of Wed, 22 Jul 1992 02:53:00 GMT
  6. Message-ID: <CKD.92Jul22040059@loiosh.eff.org>
  7. Sender: usenet@eff.org (NNTP News Poster)
  8. Nntp-Posting-Host: loiosh.eff.org
  9. Organization: Electronic Frontier Foundation Tech Central
  10. References: <1992Jul22.025300.10797@news.columbia.edu>
  11. Date: Wed, 22 Jul 1992 08:03:09 GMT
  12. Lines: 38
  13.  
  14. Gabe> == Gabe M Wiener <gmw1@cunixa.cc.columbia.edu> 
  15.  
  16.  Gabe> Can someone explain exactly what is going on when a program
  17.  Gabe> "trips over" the 040 cache?  Does the 040 cache have any relation
  18.  Gabe> to the external cache that can be added in the PDS slot?  Why
  19.  Gabe> does this problem not manifest itself on IIci's with cache cards?
  20.  
  21. Basically, imagine that you have a program, with instructions A B C D
  22. and E.  E happens to be a "loop back to A" instruction of some sort.  B
  23. is an "increment the following location" instruction.
  24.  
  25. So the machine runs A B D D E A B E A B F D E and so on.  All is happy
  26. (except that the programmer wasn't following Apple's rules).  Then we
  27. get a chip with an onboard cache, which allows tight loops to run
  28. completely inside the chip.  Now, when B modifies the next location, it
  29. modifies the location in the DATA cache, not the INSTRUCTION cache... so
  30. you get A B C D E A B C D E etc.
  31.  
  32. An external cache (like a IIci cache card) isn't split instruction &
  33. data like the '040 cache, and doesn't hit the problem.  That doesn't
  34. mean self-modifying code is smart :)
  35.  
  36.  Gabe> Apparently there is some sort of Apple CDEV that can be used to
  37.  Gabe> turn the 040 cache on and off.  It does not seem to be on the
  38.  Gabe> 7.0.1 distribution.  What is this little CDEV called?  I'll
  39.  Gabe> probably prowl around ftp.apple.com and see if it's there
  40.  
  41. This should be on your Tidbits disk; it's called Cache Control, and has
  42. an icon of a "swooshing" 040.
  43.  
  44.  Gabe> (btw, does any of this have anything to do with the serial port switch?)
  45.  
  46. Nope.  That's a different potential incompatibility altogether. :-)
  47. --
  48. Christopher Davis * ckd@eff.org * System Administrator, EFF * +1 617 864 0665
  49.    ``The First Amendment is often inconvenient.  But that is besides the
  50.   point.  Inconvenience does not absolve the government of its obligation
  51.          to tolerate speech.'' --Justice Anthony Kennedy, in 91-155
  52.