OAR

RTEMS 4.5.1-pre3 On-Line Library


Interrupt Processing Interrupt Stack

PREV UP NEXT Bookshelf RTEMS SPARC Applications Supplement

4.7: Interrupt Stack

The SPARC architecture does not provide for a dedicated interrupt stack. Thus by default, trap handlers would execute on the stack of the RTEMS task which they interrupted. This artificially inflates the stack requirements for each task since EVERY task stack would have to include enough space to account for the worst case interrupt stack requirements in addition to it's own worst case usage. RTEMS addresses this problem on the SPARC by providing a dedicated interrupt stack managed by software.

During system initialization, RTEMS allocates the interrupt stack from the Workspace Area. The amount of memory allocated for the interrupt stack is determined by the interrupt_stack_size field in the CPU Configuration Table. As part of processing a non-nested interrupt, RTEMS will switch to the interrupt stack before invoking the installed handler.


PREV UP NEXT Bookshelf RTEMS SPARC Applications Supplement

Copyright © 1988-2000 OAR Corporation