Ignore:
Timestamp:
Jul 31, 2017, 1:59:52 PM (7 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/hal/tsar_mips32/drivers/soclib_tty.c

    r279 r296  
    8282        // Block and deschedule server thread
    8383        thread_block( CURRENT_THREAD , THREAD_BLOCKED_DEV_ISR );
    84         sched_yield();
     84        sched_yield( NULL );
    8585    }
    8686    else if( type == TXT_WRITE )        // descheduling strategy for calling thread
     
    9494        // Block and deschedule server thread
    9595        thread_block( CURRENT_THREAD , THREAD_BLOCKED_DEV_ISR );
    96         sched_yield();
     96        sched_yield( NULL );
    9797    }
    9898    else if( type == TXT_SYNC_WRITE )  // busy waiting strategy for calling thread
Note: See TracChangeset for help on using the changeset viewer.