Changeset 551 for trunk/kernel/mm/kmem.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/kmem.c

    r492 r551  
    192192        uint32_t    size;    // ln( pages ) if PPM / bytes if KHM / unused if KCM
    193193        void      * ptr;     // memory buffer if KHM or KCM / page descriptor if PPM
     194        uint32_t    irq_state;
    194195
    195196
     
    257258                if( cluster->kcm_tbl[type] == NULL )
    258259                {
    259                         spinlock_lock( &cluster->kcm_lock );
     260                        spinlock_lock_busy( &cluster->kcm_lock, &irq_state );
    260261                        error_t error = kmem_create_kcm( type );
    261                         spinlock_unlock( &cluster->kcm_lock );
     262                        spinlock_unlock_busy( &cluster->kcm_lock, irq_state );
    262263                        if ( error ) return NULL;
    263264                }
Note: See TracChangeset for help on using the changeset viewer.