home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18704 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.6 KB  |  36 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!gumby!kzoo!k044477
  3. From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
  4. Subject: Re: Testing memory validity
  5. Message-ID: <1992Nov20.133613.13461@hobbes.kzoo.edu>
  6. Organization: Kalamazoo College
  7. References: <1992Nov19.180353.3151@hobbes.kzoo.edu>
  8. Date: Fri, 20 Nov 1992 13:36:13 GMT
  9. Lines: 25
  10.  
  11. k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:
  12. >Can anyone spell out an algorithm to me for predicting whether the
  13. >access of a certain memory location will yield a bus error?
  14.  
  15. I've gotten three responses to date:  two "try installing your own bus
  16. error handler"s and one "let me know what responses you've gotten."
  17.  
  18. Unfortunately, even if I trusted myself to do something as grungy as
  19. modifying 680x0 exception vectors ("what, you mean I won't be able to
  20. use a source-level debugger"), I won't get the desired effect.  This
  21. code has to "reserve" a range of memory before it gets access to it.
  22. I was hoping to trap potential, not actual, errors by detecting invalid
  23. ranges of memory.
  24.  
  25. For example, I know that 0x50FF8001 is always an invalid location.  I
  26. expect that some locations will always be valid, some always invalid,
  27. and that some will depend on which Mac, which addressing mode, which
  28. slots have cards in them, and lots of other stuff that I'm no expert on.
  29. I'm looking for a list of such considerations.
  30.  
  31. Any help will be appreciated (and will make this (soon to be
  32. freely-distributable) code that much better).
  33. -- 
  34.  Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
  35.  I suppose ya don't think I was run over by a streetcar!
  36.