Ignore:
Timestamp:
Oct 4, 2018, 11:48:51 PM (3 years ago)
Author:
alain
Message:

Complete restructuration of kernel locks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_mmc.c

    r492 r565  
    2828#include <chdev.h>
    2929#include <thread.h>
     30#include <remote_busylock.h>
    3031#include <dev_mmc.h>
    3132
     
    7677    dev_cmd_t * cmd = (dev_cmd_t *)hal_remote_lpt( XPTR( dev_cxy , &dev_ptr->cmd ) );
    7778
    78     // get the MMC device remote spinlock
    79     remote_spinlock_lock( XPTR( dev_cxy , &dev_ptr->wait_lock ) ); 
     79    // get the MMC device remote busylock
     80    remote_busylock_acquire( XPTR( dev_cxy , &dev_ptr->wait_lock ) ); 
    8081
    8182    // call driver command
    8283    cmd( XPTR( local_cxy , this ) );
    8384   
    84     // release the MMC device remote spinlock
    85     remote_spinlock_unlock( XPTR( dev_cxy , &dev_ptr->wait_lock ) ); 
     85    // release the MMC device remote busylock
     86    remote_busylock_release( XPTR( dev_cxy , &dev_ptr->wait_lock ) ); 
    8687
    8788    // return operation status
Note: See TracChangeset for help on using the changeset viewer.