Changeset 8e2cd0c in rtems


Ignore:
Timestamp:
Sep 25, 2009, 6:08:55 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
081c475
Parents:
e1c9abd
Message:

2009-09-25 Joel Sherrill <joel.sherrill@…>

  • score/inline/rtems/score/thread.inl: Restore the BSP context -- do not save the current. This routine is also marked as not returning which saves the exit path code.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    re1c9abd r8e2cd0c  
     12009-09-25      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * score/inline/rtems/score/thread.inl: Restore the BSP context -- do
     4        not save the current. This routine is also marked as not returning
     5        which saves the exit path code.
     6
    172009-09-25      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • cpukit/score/inline/rtems/score/thread.inl

    re1c9abd r8e2cd0c  
    2525
    2626#include <rtems/score/sysstate.h>
     27#include <rtems/score/context.h>
    2728
    2829/**
     
    4546    context_p = &_Thread_Executing->Registers;
    4647
    47   _Context_Switch( context_p, &_Thread_BSP_context );
     48  /*
     49   *  This may look a bit of an odd but _Context_Restart_self is just
     50   *  a very careful restore of a specific context which ensures that
     51   *  if we were running within the same context, it would work.
     52   *
     53   *  And we will not return to this thread, so there is no point of
     54   *  saving the context.
     55   */
     56  _Context_Restart_self( &_Thread_BSP_context );
     57
     58  /***************************************************************
     59   ***************************************************************
     60   *   SYSTEM SHUTS DOWN!!!  WE DO NOT RETURN TO THIS POINT!!!   *
     61   ***************************************************************
     62   ***************************************************************
     63   */
    4864}
    4965
Note: See TracChangeset for help on using the changeset viewer.