Ignore:
Timestamp:
Sep 21, 2018, 10:24:34 PM (6 years ago)
Author:
nicolas.van.phan@…
Message:

Make locks before IDLE Init busy

File:
1 edited

Legend:

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

    r500 r551  
    7878
    7979    // take lock protecting sheduler lists
    80     spinlock_lock( &sched->lock );
     80    uint32_t       irq_state;
     81    spinlock_lock_busy( &sched->lock, &irq_state );
    8182
    8283    if( type == THREAD_USER )
     
    9596    // release lock
    9697    hal_fence();
    97     spinlock_unlock( &sched->lock );
     98    spinlock_unlock_busy( &sched->lock, irq_state);
    9899
    99100}  // end sched_register_thread()
Note: See TracChangeset for help on using the changeset viewer.