Changeset 551 for trunk/kernel/mm/kcm.c


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/mm/kcm.c

    r492 r551  
    288288
    289289        // get lock
    290         spinlock_lock( &kcm->lock );
     290        uint32_t     irq_state;
     291        spinlock_lock_busy( &kcm->lock, &irq_state );
    291292
    292293        // get an active page
     
    298299                if( kcm_page == NULL )
    299300                {
    300                         spinlock_unlock( &kcm->lock );
     301                        spinlock_unlock_busy( &kcm->lock, irq_state );
    301302                        return NULL;
    302303                }
     
    318319
    319320        // release lock
    320         spinlock_unlock( &kcm->lock );
     321        spinlock_unlock_busy( &kcm->lock, irq_state );
    321322
    322323        return ptr;
Note: See TracChangeset for help on using the changeset viewer.