Ignore:
Timestamp:
Aug 2, 2017, 2:17:00 PM (7 years ago)
Author:
max@…
Message:

Introduce hal_cpu_context_switch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/core/hal_context.c

    r296 r311  
    335335    ".set at                       \n"
    336336    : : : "$26" , "$27" );
     337}
     338
     339void hal_cpu_context_switch( thread_t * old , thread_t * new )
     340{
     341    // XXX XXX: TODO
     342    hal_cpu_context_save( old->cpu_context );
     343    hal_cpu_context_restore( new->cpu_context );
    337344}
    338345
Note: See TracChangeset for help on using the changeset viewer.