RTEMS Logo

RTEMS 4.8.0 On-Line Library


SPARC Specific Information Traps and Register Windows

PREV UP NEXT Bookshelf RTEMS CPU Architecture Supplement

8.4.3: Traps and Register Windows

One of the register windows must be reserved at all times for trap processing. This is critical to the proper operation of the trap mechanism in the SPARC architecture. It is the responsibility of the trap handler to insure that there is a register window available for a subsequent trap before re-enabling traps. It is likely that any high level language routines invoked by the trap handler (such as a user-provided RTEMS interrupt handler) will allocate a new register window. The save operation could result in a window overflow trap. This trap cannot be correctly processed unless (1) traps are enabled and (2) a register window is reserved for traps. Thus, the RTEMS interrupt handler insures that a register window is available for subsequent traps before enabling traps and invoking the user's interrupt handler.


PREV UP NEXT Bookshelf RTEMS CPU Architecture Supplement

Copyright © 1988-2007OAR Corporation