Changeset 75ad7376 in rtems for c/src/lib/libcpu


Ignore:
Timestamp:
Nov 28, 2001, 6:15:51 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
4db30283
Parents:
c1b61c5
Message:

2001-11-28 Joel Sherrill <joel@…>,

This was tracked as PR91.

  • rtems/score/cpu.h: Added CPU_PROVIDES_ISR_IS_IN_PROGRESS macro which is used to specify if the port uses the standard macro for this (FALSE). A TRUE setting indicates the port provides its own implementation.
  • rtems/score/c_isr.inl: Deleted and contents merged into cpu.c.
  • cpu.c: Received contents of c_isr.inl.
  • Makefile.am: Deleted reference to c_isr.inl.
Location:
c/src/lib/libcpu/powerpc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/new-exceptions/ChangeLog

    rc1b61c5 r75ad7376  
     12001-11-28      Joel Sherrill <joel@OARcorp.com>,
     2
     3        This was tracked as PR91.
     4        * rtems/score/cpu.h: Added CPU_PROVIDES_ISR_IS_IN_PROGRESS macro which
     5        is used to specify if the port uses the standard macro for this (FALSE).
     6        A TRUE setting indicates the port provides its own implementation.
     7        * rtems/score/c_isr.inl: Deleted and contents merged into cpu.c.
     8        * cpu.c: Received contents of c_isr.inl.
     9        * Makefile.am: Deleted reference to c_isr.inl.
     10
    1112001-11-26      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    212
  • c/src/lib/libcpu/powerpc/new-exceptions/cpu.c

    rc1b61c5 r75ad7376  
    111111}
    112112
     113/*PAGE
     114 *
     115 *  This is the PowerPC specific implementation of the routine which
     116 *  returns TRUE if an interrupt is in progress.
     117 */
    113118
     119boolean _ISR_Is_in_progress( void )
     120{
     121  register unsigned int isr_nesting_level;
     122  /*
     123   * Move from special purpose register 0 (mfspr SPRG0, r3)
     124   */
     125  asm volatile ("mfspr  %0, 272" : "=r" (isr_nesting_level));
     126  return isr_nesting_level;
     127}
    114128
    115 
  • c/src/lib/libcpu/powerpc/old-exceptions/ChangeLog

    rc1b61c5 r75ad7376  
     12001-11-28      Joel Sherrill <joel@OARcorp.com>,
     2
     3        This was tracked as PR91.
     4        * rtems/score/cpu.h: Added CPU_PROVIDES_ISR_IS_IN_PROGRESS macro which
     5        is used to specify if the port uses the standard macro for this (FALSE).
     6        A TRUE setting indicates the port provides its own implementation.
     7        * rtems/score/c_isr.inl: Deleted and contents merged into cpu.c.
     8        * cpu.c: Received contents of c_isr.inl.
     9        * Makefile.am: Deleted reference to c_isr.inl.
     10
    1112001-11-26      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    212
  • c/src/lib/libcpu/powerpc/old-exceptions/cpu.c

    rc1b61c5 r75ad7376  
    874874}
    875875
     876/*PAGE
     877 *
     878 *  This is the PowerPC specific implementation of the routine which
     879 *  returns TRUE if an interrupt is in progress.
     880 *
     881 *  NOTE: This is the same as the generic version. But since the
     882 *        PowerPC is still supporting old and new exception processing
     883 *        models and the new exception processing model has a hardware
     884 *        way of doing this, we have to provide this capability here
     885 *        for symmetry.
     886 */
     887
     888boolean _ISR_Is_in_progress( void )
     889{
     890  return (_ISR_Nest_level != 0);
     891}
Note: See TracChangeset for help on using the changeset viewer.