Changeset 474 for soft/giet_vm
- Timestamp:
- Dec 12, 2014, 5:54:20 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_fat32/fat32.c
r458 r474 1130 1130 1131 1131 // initalise the lock protecting the FAT 1132 _ lock_init( &fat.fat_lock );1132 _spin_lock_init( &fat.fat_lock ); 1133 1133 1134 1134 // initialise file descriptor array … … 1241 1241 } 1242 1242 // takes the FAT lock for exclusive access 1243 _ lock_acquire( &fat.fat_lock );1243 _spin_lock_acquire( &fat.fat_lock ); 1244 1244 1245 1245 #if GIET_DEBUG_FAT … … 1296 1296 _puts( name ); 1297 1297 _puts("\n"); 1298 _ lock_release( &fat.fat_lock );1298 _spin_lock_release( &fat.fat_lock ); 1299 1299 return -1; 1300 1300 } … … 1351 1351 1352 1352 // release FAT lock 1353 _ lock_release( &fat.fat_lock );1353 _spin_lock_release( &fat.fat_lock ); 1354 1354 1355 1355 return fd_id; … … 1360 1360 _puts( pathname ); 1361 1361 _puts(" : fd array full\n"); 1362 _ lock_release( &fat.fat_lock );1362 _spin_lock_release( &fat.fat_lock ); 1363 1363 return -1; 1364 1364 } … … 1369 1369 _puts( pathname ); 1370 1370 _puts(" : bad cluster\n"); 1371 _ lock_release( &fat.fat_lock );1371 _spin_lock_release( &fat.fat_lock ); 1372 1372 return -1; 1373 1373 }
Note: See TracChangeset
for help on using the changeset viewer.