cse325_S12_set_6_interrupt(1)

cse325_S12_set_6_interrupt(1) - Interrupt Controller in...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
7/23 Interrupt Controller in Coldfire Arizona State University Tempe, AZ 85287 Dr. Yann-Hang Lee yhlee@asu.edu (480) 727-7507
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Exceptions and Interrupts q The processor is usually in user mode, and enters supervisor mode when an unexpected event occurs. q There are three different types of exceptions (some are called interrupts): - v As a direct result of executing an instruction, such as: Ø Trap Instruction Ø Privilege violation Ø Undefined or illegal instruction Ø Memory error during fetching an instruction (access error) v As a side- effect of an instruction, such as: Ø Memory fault during operand read from memory (access error) Ø Arithmetic error (e. g. divide by zero) v As a result of external hardware signals, such as: Ø Reset Ø User peripheral interrupts set 4 -- 2
Background image of page 2
Coldfire Exceptions set 4 -- 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
q Complete the current instruction as best as it can, and departs from current instruction sequence to handle the exception by performing the following steps: - v makes an internal copy of the SR and set SR Ø S=1 – supervisor mode, T=0 – disable trace, M=0, and I0-I2 = exception priority (to mask low priority interrupts) v determines the exception vector number. Ø compute vector if processor exception Ø performs an interrupt-acknowledge (IACK) bus cycle to obtain the vector number from the interrupt controller. v saves the “current context” by creating an exception stack frame on the system stack. v
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 13

cse325_S12_set_6_interrupt(1) - Interrupt Controller in...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online