Changeset 565 for trunk/kernel/devices/dev_mmc.c
- Timestamp:
- Oct 4, 2018, 11:48:51 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_mmc.c
r492 r565 28 28 #include <chdev.h> 29 29 #include <thread.h> 30 #include <remote_busylock.h> 30 31 #include <dev_mmc.h> 31 32 … … 76 77 dev_cmd_t * cmd = (dev_cmd_t *)hal_remote_lpt( XPTR( dev_cxy , &dev_ptr->cmd ) ); 77 78 78 // get the MMC device remote spinlock79 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 ) ); 80 81 81 82 // call driver command 82 83 cmd( XPTR( local_cxy , this ) ); 83 84 84 // release the MMC device remote spinlock85 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 ) ); 86 87 87 88 // return operation status
Note: See TracChangeset
for help on using the changeset viewer.