Ignore:
Timestamp:
Jan 8, 2018, 2:25:39 PM (4 years ago)
Author:
alain
Message:

Fix a bug in hal_kentry.S : the "uzone" pointer in the thread descriptor
must not be modified in case of interrupt.

File:
1 edited

Legend:

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

    r416 r418  
    868868
    869869        }
    870         else                                // yield each ~ 100000 cycles
    871 
     870        else                                // search a runable thread
    872871        {
    873              hal_fixed_delay( 500000 );
     872            sched_yield( "IDLE" );
    874873        }
    875 
    876         // force scheduling at each iteration
    877         sched_yield( "idle" );
    878    }
     874    }
    879875}  // end thread_idle()
    880876
Note: See TracChangeset for help on using the changeset viewer.