Changeset a5b4db4b in rtems


Ignore:
Timestamp:
Dec 21, 2017, 1:59:54 PM (16 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
9c270ac
Parents:
0a49929
git-author:
Sebastian Huber <sebastian.huber@…> (12/21/17 13:59:54)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/19/18 06:45:21)
Message:

rtems: Fix rtems_task_mode()

A rtems_configuration_is_smp_enabled() inside a !defined( RTEMS_SMP)
block makes no sense.

Remove !defined( RTEMS_SMP ) conditions.

Test tm04 works now again.

Update #3000.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/taskmode.c

    r0a49929 ra5b4db4b  
    8989   */
    9090  preempt_enabled = false;
    91 #if !defined( RTEMS_SMP )
    9291  if ( mask & RTEMS_PREEMPT_MASK ) {
    93     if ( rtems_configuration_is_smp_enabled() &&
    94          !_Modes_Is_preempt( mode_set ) ) {
    95       return RTEMS_NOT_IMPLEMENTED;
    96     }
    9792    bool is_preempt_enabled = _Modes_Is_preempt( mode_set );
    9893
     
    10095    executing->is_preemptible = is_preempt_enabled;
    10196  }
    102 #endif
    10397
    10498  if ( mask & RTEMS_TIMESLICE_MASK ) {
     
    114108   *  Set the new interrupt level
    115109   */
    116 #if !defined( RTEMS_SMP )
    117110  if ( mask & RTEMS_INTERRUPT_MASK ) {
    118111    _Modes_Set_interrupt_level( mode_set );
    119112  }
    120 #endif
    121113
    122114  /*
Note: See TracChangeset for help on using the changeset viewer.