Changeset a5bbd3ac in rtems


Ignore:
Timestamp:
10/07/14 22:41:52 (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
4efdc8e9
Parents:
bf19dbc3
git-author:
Joel Sherrill <joel.sherrill@…> (10/07/14 22:41:52)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/09/14 15:11:57)
Message:

moxiertems/score/cpu.h: _CPU_Context_switch needed RTEMS_COMPILER_NO_RETURN_ATTRIBUTE plus fix warnings on unimplemented ISR enable/disable

File:
1 edited

Legend:

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

    rbf19dbc3 ra5bbd3ac  
    571571 *  MOXIE Specific Information:
    572572 *
    573  *  XXX
    574  */
    575 #define _CPU_ISR_Disable( _isr_cookie ) (_isr_cookie) = 0
     573 *  TODO: As of 7 October 2014, this method is not implemented.
     574 */
     575#define _CPU_ISR_Disable( _isr_cookie ) \
     576  do { \
     577    (_isr_cookie) = 0; \
     578  } while (0)
    576579
    577580/*
     
    582585 *  MOXIE Specific Information:
    583586 *
    584  *  XXX
    585  */
    586 #define _CPU_ISR_Enable( _isr_cookie )
     587 *  TODO: As of 7 October 2014, this method is not implemented.
     588 */
     589#define _CPU_ISR_Enable( _isr_cookie ) \
     590  do { \
     591    (_isr_cookie) = (_isr_cookie); \
     592  } while (0)
    587593
    588594/*
     
    594600 *  MOXIE Specific Information:
    595601 *
    596  *  XXX
    597  */
    598 #define _CPU_ISR_Flash( _isr_cookie )
     602 *  TODO: As of 7 October 2014, this method is not implemented.
     603 */
     604#define _CPU_ISR_Flash( _isr_cookie ) \
     605  do { \
     606    _CPU_ISR_Enable( _isr_cookie ); \
     607    _CPU_ISR_Disable( _isr_cookie ); \
     608  } while (0)
    599609
    600610/*
     
    610620 *  MOXIE Specific Information:
    611621 *
    612  *  XXX
     622 *  TODO: As of 7 October 2014, this method is not implemented.
    613623 */
    614624#define _CPU_ISR_Set_level( _new_level )        \
     
    646656 *  MOXIE Specific Information:
    647657 *
    648  *  XXX
     658 *  TODO: As of 7 October 2014, this method does not ensure that the context
     659 *  is set up with interrupts disabled/enabled as requested.
    649660 */
    650661#define CPU_CCR_INTERRUPTS_ON  0x80
     
    657668    uintptr_t   _stack;                                            \
    658669                                                                   \
     670    (void) _is_fp; /* avoid warning for being unused */            \
     671    (void) _isr;   /* avoid warning for being unused */            \
    659672    _stack = ((uintptr_t)(_stack_base)) + (_size) - 8;             \
    660673    *((proc_ptr *)(_stack)) = (_entry_point);                      \
     
    949962void _CPU_Context_restore(
    950963  Context_Control *new_context
    951 );
     964) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
    952965
    953966/*
Note: See TracChangeset for help on using the changeset viewer.