home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22018 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.9 KB

  1. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!uwm.edu!linac!att!cbnewsm!cbnewsl!att-out!rutgers!zeus.ieee.org!fsbbs!f204.n2603.z1.ieee.org!Ray.Arachelian
  2. From: Ray.Arachelian@f204.n2603.z1.ieee.org (Ray Arachelian)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: 68000 Exception Handling
  5. Message-ID: <21540.2B6126CC@zeus.ieee.org>
  6. Date: 22 Jan 93 14:31:04 GMT
  7. Sender: news
  8. Organization: FidoNet node 1:2603/204 - Not Even Odd, Forest Hills NY
  9. Lines: 32
  10.  
  11. I've a question about the 68000/68030 CPU's.
  12.  
  13. When an illegal instruction occurst (F line, or A line traps) can hardware 
  14. interrupts interrupt the toobox call?
  15.  
  16. I'm thinking about writing a pre-emptive multi-tasking extension for the 
  17. Mac, but the problem is that I don't want to interfere with a toolbox 
  18. call.
  19.  
  20. If the IRQ lines generated by the VBL's, and other I/O's can infact 
  21. interrupt a toolbox call, I can patch my own routines to to the toolbox 
  22. trap mechanism.
  23.  
  24. IE: When a toolbox command is executed by the CPU, I'd patch the vector 
  25. for the A line emulator to first enter my routine which will set the 
  26. toolbox flag, then call the old routine, and then clear the flag.
  27.  
  28. Basically what I want to be able to do is to have patch the IRQ Level 1 
  29. 68000 vector to run my routines before and after entering the Mac OS 
  30. Interrupt Service Routines.  To do pre-emtive tasking I need to know that 
  31. its safe to tell the Mac OS to do a context switch.  I don't want to do a 
  32. context switch in the middle of a toolbox call or antoher interrupt.  I 
  33. know that interrupts can be re-entrant, or an interrupt of a higher 
  34. priority can interrupt the task servicing an interrup.
  35.  
  36. How can I do this?
  37.  
  38.  * Freddie 1.3b4 * Metal Militia: Joining together to take on the world with
  39. our heavy metal
  40. --  
  41. =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  42.  Ray Arachelian - Internet: Ray.Arachelian@f204.n2603.z1.ieee.org
  43.