Professional Documents
Culture Documents
Exceptio NS: Is Often Used To Refer To Any Event That Causes An Interruption
Exceptio NS: Is Often Used To Refer To Any Event That Causes An Interruption
Exceptio NS: Is Often Used To Refer To Any Event That Causes An Interruption
NS
Is often used to refer to
any event that causes an
interruption
Kinds of Exceptions
Recovery from Errors
Exception-Service Routine
-takes appropriate action
to recover from the error or to
inform the user about it.
Debugging
Debugger
-helps the programmer find errors
in a program.
Privileged Instruction
-modifies the priority of the
processor.
Operating System
ARM Processor
- Advanced RISC (Reduced Instruction
Set Computer) Machines has a simple yet
powerful exception-handling mechanism.
• 5 Sources of Exceptions
External interrupt-request lines
(IRQ).
3. Reset
4. Data Abort
5. FIQ
6. IRQ
7. Prefetch Abort
8. Undefined Structure
• When the processor accepts an
interrupt, it takes the following
actions:
2. It saves the return address of the
interrupted program in register14 of the
corresponding mode.
3. It saves the contents of the current
processor status register (CPSR) in the
corresponding SPSR (Saved Processor
Status Register).
4. It changes the mode bits in CPSR
according to the type of interrupt.
5. It branches to the interrupt-service
routine starting at the appropriate vector
address.
*The ARM Processor uses a pipelined structure.
Pipelined Structure
- an instruction is fetched before the
execution of the preceding instruction is
completed.
• ARM Processor
Stacks and Nesting