Changeset 311 for trunk/hal/generic
- Timestamp:
- Aug 2, 2017, 2:17:00 PM (8 years ago)
- File:
- 
          - 1 edited
 
 - 
          trunk/hal/generic/hal_context.h (modified) (2 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
        trunk/hal/generic/hal_context.hr296 r311 69 69 70 70 /**************************************************************************************** 71 * This function saves in the thread context the CPU registers values that must be72 * saved at context switch.71 * This function performs a context switch, saving the CPU register values into the 72 * old thread, and initializing these registers with the values of the new thread. 73 73 **************************************************************************************** 74 * @ ctx : pointer on cpu context. 74 * @ old : pointer on current thread. 75 * @ new : pointer on the thread we want to switch to. 75 76 ***************************************************************************************/ 76 void hal_cpu_context_save( void * ctx ); 77 78 /**************************************************************************************** 79 * This function restores from the thread context the CPU registers values that must 80 * be restored at context switch. 81 **************************************************************************************** 82 * @ ctx : pointer on cpu context. 83 ***************************************************************************************/ 84 void hal_cpu_context_restore( void * ctx ); 77 void hal_cpu_context_switch( struct thread_s * old , struct thread_s * new ); 85 78 86 79 /**************************************************************************************** … … 92 85 ***************************************************************************************/ 93 86 void hal_cpu_context_load( struct thread_s * thread ); 94 95 87 96 88 /**************************************************************************************** 
Note: See TracChangeset
          for help on using the changeset viewer.
      
