RTEMS Logo

RTEMS 4.6.1 On-Line Library


Interrupt Processing Register Cache Flushing

PREV UP NEXT Bookshelf RTEMS Intel i960 Applications Supplement

4.6: Register Cache Flushing

The i960CA version of the RTEMS interrupt manager is optimized to insure that the flushreg instruction is only executed when a context switch is necessary. The flushreg instruction flushes the i960CA register set cache and takes (14 + 23 * number of sets flushed) cycles to execute. As the i960CA supports caching of from five to sixteen register sets, this instruction takes from 129 to 382 cycles (3.90 to 11.57 microseconds at 33 Mhz) to execute given no wait state memory. RTEMS flushes the register set cache only at the conclusion of the outermost ISR when a context switch is necessary. The register set cache will not be flushed as part of processing a nested interrupt or when a context switch is not necessary. This optimization is essential to providing high-performance interrupt management on the i960CA.


PREV UP NEXT Bookshelf RTEMS Intel i960 Applications Supplement

Copyright © 1988-2004 OAR Corporation