Changeset 60ec7a6 in rtems


Ignore:
Timestamp:
10/08/14 20:10:35 (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
a3ae261a
Parents:
1314849
git-author:
Joel Sherrill <joel.sherrill@…> (10/08/14 20:10:35)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/09/14 15:11:58)
Message:

m32r/rtems/score/cpu.h: Fix macros to avoid warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/m32r/rtems/score/cpu.h

    r1314849 r60ec7a6  
    725725 * Port Specific Information:
    726726 *
    727  * XXX document implementation including references if appropriate
     727 *  TODO: As of 8 October 2014, this method is not implemented.
    728728 */
    729729#define _CPU_ISR_Disable( _isr_cookie ) \
    730   { \
    731     (_isr_cookie) = 0;   /* do something to prevent warnings */ \
    732   }
     730  do { \
     731    (_isr_cookie) = 0; \
     732  } while (0)
    733733
    734734/**
     
    741741 * Port Specific Information:
    742742 *
    743  * XXX document implementation including references if appropriate
    744  */
    745 #define _CPU_ISR_Enable( _isr_cookie )  \
    746   { \
    747     (_isr_cookie) = 0;   /* do something to prevent warnings */ \
    748   }
     743 *  TODO: As of 8 October 2014, this method is not implemented.
     744 */
     745#define _CPU_ISR_Enable( _isr_cookie ) \
     746  do { \
     747    (_isr_cookie) = (_isr_cookie); \
     748  } while (0)
    749749
    750750/**
     
    758758 * Port Specific Information:
    759759 *
    760  * XXX document implementation including references if appropriate
     760 *  TODO: As of 8 October 2014, this method is not implemented.
    761761 */
    762762#define _CPU_ISR_Flash( _isr_cookie ) \
    763   { \
    764   }
     763  do { \
     764    _CPU_ISR_Enable( _isr_cookie ); \
     765    _CPU_ISR_Disable( _isr_cookie ); \
     766  } while (0)
    765767
    766768/**
     
    777779 * Port Specific Information:
    778780 *
    779  * XXX document implementation including references if appropriate
    780  */
    781 #define _CPU_ISR_Set_level( new_level ) \
    782   { \
    783   }
     781 *  TODO: As of 8 October 2014, this method is not implemented.
     782 */
     783static inline void _CPU_ISR_Set_level( unsigned int new_level )
     784{
     785}
    784786
    785787/**
     
    791793 * Port Specific Information:
    792794 *
    793  * XXX document implementation including references if appropriate
     795 *  TODO: As of 8 October 2014, this method is not implemented.
    794796 */
    795797uint32_t   _CPU_ISR_Get_level( void );
     
    862864void _CPU_Context_Restart_self(
    863865  Context_Control  *the_context
    864 );
     866) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
    865867
    866868/**
Note: See TracChangeset for help on using the changeset viewer.