



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




There are two key questions that determine how data is transferred to and from a non-trivial I/O device. Each question has two possible answers.
b. Interrupts
b. Direct Memory Access (DMA)
So far we have implicitly assumed the simple answers to these questions (polling and programmed I/O). We will look at interrupts next, and DMA later in the term.
An interrupt (also known as an exception or trap ) is an event that causes the CPU to stop executing the current program and start executing a special piece of code called an interrupt handler or interrupt service routine (ISR). The ISR typically does some work, then resumes the interrupted program.
Microprocessors use the interrupt mechanism for lots of largely unrelated things. These things can be grouped into two categories:
As for procedure calls, the PowerPC architecture provides “bare bones” support for interrupts.
Sometimes you can’t afford to take an interrupt:
Synchronous interrupts can be avoided by not executing instructions that might cause them:
Note that some interrupts (e.g. reset) are not maskable.
A system with multiple devices that can interrupt the CPU must be able to determine which device to service on an interrupt. There are two related issues:
Depending on the system, high-priority interrupts may or may not be able to interrupt low-priority service routines. Three standard approaches:
Part of on-chip System Interface Unit (SIU), not part of PowerPC processor “core”. See Section 12.3 of data book.