Changeset 551 for trunk/kernel/mm/kcm.c
- Timestamp:
- Sep 21, 2018, 10:24:34 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/kcm.c
r492 r551 288 288 289 289 // get lock 290 spinlock_lock( &kcm->lock ); 290 uint32_t irq_state; 291 spinlock_lock_busy( &kcm->lock, &irq_state ); 291 292 292 293 // get an active page … … 298 299 if( kcm_page == NULL ) 299 300 { 300 spinlock_unlock ( &kcm->lock);301 spinlock_unlock_busy( &kcm->lock, irq_state ); 301 302 return NULL; 302 303 } … … 318 319 319 320 // release lock 320 spinlock_unlock ( &kcm->lock);321 spinlock_unlock_busy( &kcm->lock, irq_state ); 321 322 322 323 return ptr;
Note: See TracChangeset
for help on using the changeset viewer.