Ticket #1921: start-stop.patch

File start-stop.patch, 1.6 KB (added by Sebastian Huber, on Sep 22, 2011 at 6:07:43 PM)

Proposed change.

  • score/inline/rtems/score/thread.inl

    RCS file: /usr1/CVS/rtems/cpukit/score/inline/rtems/score/thread.inl,v
    retrieving revision 1.46
    diff -u -r1.46 thread.inl
     
    111111
    112112RTEMS_INLINE_ROUTINE void _Thread_Stop_multitasking( void )
    113113{
     114#if defined(_CPU_Stop_multitasking)
     115  _CPU_Stop_multitasking( &_Thread_BSP_context );
     116#else
    114117  /*
    115118   *  This may look a bit of an odd but _Context_Restart_self is just
    116119   *  a very careful restore of a specific context which ensures that
     
    120123   *  saving the context.
    121124   */
    122125  _Context_Restart_self( &_Thread_BSP_context );
     126#endif
    123127
    124128  /***************************************************************
    125129   ***************************************************************
  • score/src/threadstartmultitasking.c

    RCS file: /usr1/CVS/rtems/cpukit/score/src/threadstartmultitasking.c,v
    retrieving revision 1.12
    diff -u -r1.12 threadstartmultitasking.c
     
    8787     _Context_Restore_fp( &_Thread_Heir->fp_context );
    8888#endif
    8989
     90#if defined(_CPU_Start_multitasking)
     91  _CPU_Start_multitasking( &_Thread_BSP_context, &_Thread_Heir->Registers );
     92#else
    9093  _Context_Switch( &_Thread_BSP_context, &_Thread_Heir->Registers );
     94#endif
    9195}