RTEMS Logo

RTEMS 4.6.0pre5 On-Line Library


Interrupt Processing Synchronous Versus Asynchronous Traps

PREV UP NEXT Bookshelf RTEMS SPARC Applications Supplement

4.2: Synchronous Versus Asynchronous Traps

The SPARC architecture includes two classes of traps: synchronous and asynchronous. Asynchronous traps occur when an external event interrupts the processor. These traps are not associated with any instruction executed by the processor and logically occur between instructions. The instruction currently in the execute stage of the processor is allowed to complete although subsequent instructions are annulled. The return address reported by the processor for asynchronous traps is the pair of instructions following the current instruction.

Synchronous traps are caused by the actions of an instruction. The trap stimulus in this case either occurs internally to the processor or is from an external signal that was provoked by the instruction. These traps are taken immediately and the instruction that caused the trap is aborted before any state changes occur in the processor itself. The return address reported by the processor for synchronous traps is the instruction which caused the trap and the following instruction.


PREV UP NEXT Bookshelf RTEMS SPARC Applications Supplement

Copyright © 1988-2003 OAR Corporation