Changeset 278 for trunk/kernel/kern


Ignore:
Timestamp:
Jul 26, 2017, 3:42:47 PM (7 years ago)
Author:
max@…
Message:

Should be 'next'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/scheduler.c

    r101 r278  
    277277        if( current->type != THREAD_USER ) return;
    278278
    279         if( current == core->fpu_owner ) hal_fpu_enable();
    280         else                              hal_fpu_disable();
     279        if( next == core->fpu_owner ) hal_fpu_enable();
     280        else                          hal_fpu_disable();
    281281
    282282}  // end sched_yield()
Note: See TracChangeset for help on using the changeset viewer.