Changeset 551 for trunk/kernel/mm/kmem.c
- Timestamp:
- Sep 21, 2018, 10:24:34 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/kmem.c
r492 r551 192 192 uint32_t size; // ln( pages ) if PPM / bytes if KHM / unused if KCM 193 193 void * ptr; // memory buffer if KHM or KCM / page descriptor if PPM 194 uint32_t irq_state; 194 195 195 196 … … 257 258 if( cluster->kcm_tbl[type] == NULL ) 258 259 { 259 spinlock_lock ( &cluster->kcm_lock);260 spinlock_lock_busy( &cluster->kcm_lock, &irq_state ); 260 261 error_t error = kmem_create_kcm( type ); 261 spinlock_unlock ( &cluster->kcm_lock);262 spinlock_unlock_busy( &cluster->kcm_lock, irq_state ); 262 263 if ( error ) return NULL; 263 264 }
Note: See TracChangeset
for help on using the changeset viewer.