home *** CD-ROM | disk | FTP | other *** search
- 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
- From: Ray.Arachelian@f204.n2603.z1.ieee.org (Ray Arachelian)
- Newsgroups: comp.sys.mac.programmer
- Subject: 68000 Exception Handling
- Message-ID: <21540.2B6126CC@zeus.ieee.org>
- Date: 22 Jan 93 14:31:04 GMT
- Sender: news
- Organization: FidoNet node 1:2603/204 - Not Even Odd, Forest Hills NY
- Lines: 32
-
- I've a question about the 68000/68030 CPU's.
-
- When an illegal instruction occurst (F line, or A line traps) can hardware
- interrupts interrupt the toobox call?
-
- I'm thinking about writing a pre-emptive multi-tasking extension for the
- Mac, but the problem is that I don't want to interfere with a toolbox
- call.
-
- If the IRQ lines generated by the VBL's, and other I/O's can infact
- interrupt a toolbox call, I can patch my own routines to to the toolbox
- trap mechanism.
-
- IE: When a toolbox command is executed by the CPU, I'd patch the vector
- for the A line emulator to first enter my routine which will set the
- toolbox flag, then call the old routine, and then clear the flag.
-
- Basically what I want to be able to do is to have patch the IRQ Level 1
- 68000 vector to run my routines before and after entering the Mac OS
- Interrupt Service Routines. To do pre-emtive tasking I need to know that
- its safe to tell the Mac OS to do a context switch. I don't want to do a
- context switch in the middle of a toolbox call or antoher interrupt. I
- know that interrupts can be re-entrant, or an interrupt of a higher
- priority can interrupt the task servicing an interrup.
-
- How can I do this?
-
- * Freddie 1.3b4 * Metal Militia: Joining together to take on the world with
- our heavy metal
- --
- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
- Ray Arachelian - Internet: Ray.Arachelian@f204.n2603.z1.ieee.org
-