source: rtems/c/src/lib/libcpu/powerpc/new_exception_processing/c_isr.inl @ 98f3cfa

4.104.114.84.95
Last change on this file since 98f3cfa was acc25ee, checked in by Joel Sherrill <joel.sherrill@…>, on 12/02/99 at 14:31:19

Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@…>.
As part of this effort, the mpc750 libcpu code is now shared with the
ppc6xx.

  • Property mode set to 100644
File size: 265 bytes
Line 
1RTEMS_INLINE_ROUTINE boolean _ISR_Is_in_progress( void )
2{
3        register unsigned int isr_nesting_level;
4        /*
5         * Move from special purpose register 0 (mfspr SPRG0, r3)
6         */
7        asm volatile ("mfspr    %0, 272" : "=r" (isr_nesting_level));
8        return isr_nesting_level;
9}
Note: See TracBrowser for help on using the repository browser.