>  So I have been searching for documents documenting the way rtems has to respond to interrupts but I cant find anything.
 
Have you already read the interrupt handling section of the documentation?
http://www.rtems.com/onlinedocs/releases/rtemsdocs-4.6.2/share/rtems/html/c_user/c_user00082.html

That describes the functions used in interrupt handling, and you have the entire source tree, so you can see where those functions are used in the source code for examples of how the functions are used in practice.

-- Chris Caudle


