Ignore:
Timestamp:
Jul 31, 2017, 1:59:52 PM (4 years ago)
Author:
alain
Message:

Several modifs in the generic scheduler and in the hal_context to
fix the context switch mechanism.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/spinlock.c

    r60 r296  
    107107        {
    108108            hal_restore_irq( mode );
    109             if( thread_can_yield() ) sched_yield();
     109            if( thread_can_yield() ) sched_yield( NULL );
    110110            hal_disable_irq( &mode );
    111111            continue;
Note: See TracChangeset for help on using the changeset viewer.