Changeset 3fa4e22a in mainline


Ignore:
Timestamp:
2024-01-21T16:15:03Z (11 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
9fbdeca
Parents:
515f1b1
Message:

Only do fpu_cleanup() once we are sure we are switching

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/scheduler.c

    r515f1b1 r3fa4e22a  
    486486        assert(THREAD != NULL);
    487487
    488         fpu_cleanup();
    489 
    490488        if (atomic_load(&haltstate))
    491489                halt();
     
    508506        /* Update thread kernel accounting */
    509507        atomic_time_increment(&THREAD->kcycles, get_cycle() - THREAD->last_cycle);
     508
     509        fpu_cleanup();
    510510
    511511        /*
Note: See TracChangeset for help on using the changeset viewer.