Lecture_12 - ECE 445 Computer Organization Exceptions and...

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

View Full Document Right Arrow Icon
ECE 445 – Computer Organization Exceptions and Interrupts (Lecture #12)
Background image of page 1

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

View Full DocumentRight Arrow Icon
ECE 445 - Computer Organization 2 Exceptions and Interrupts Events, other than conditional branches and jumps, that change the normal flow of the instruction execution. An exception is internal to the processor. - Arithmetic overflow - Undefined instruction - Operating system call An interrupt is external to the processor. - I / O device request - Hardware failure
Background image of page 2
ECE 445 - Computer Organization 3 Dealing with Exceptions 1. Save the address at which the exception occurred. - PC contains this address - Save address in EPC R[ EPC ] = R[ PC ] 1. Transfer control to the Operating System. - Set PC to the address of the exception handler. R[ PC ] = address of exception handler
Background image of page 3

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

View Full DocumentRight Arrow Icon
ECE 445 - Computer Organization 4 Method #1 (MIPS): Cause Register The status register (called the Cause Register) holds a code which indicates the reason for the exception.
Background image of page 4
ECE 445 - Computer Organization 5 Method #2 (Intel): Vectored Interrupts
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/15/2010 for the course ECE 445 taught by Professor Tabak,d during the Spring '08 term at George Mason.

Page1 / 11

Lecture_12 - ECE 445 Computer Organization Exceptions and...

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

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