git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed spinlock mechananisim
[tpg/acess2.git]
/
Kernel
/
vfs
/
mount.c
diff --git
a/Kernel/vfs/mount.c
b/Kernel/vfs/mount.c
index
0c07bcb
..
0436043
100644
(file)
--- a/
Kernel/vfs/mount.c
+++ b/
Kernel/vfs/mount.c
@@
-15,7
+15,7
@@
extern char *gsVFS_MountFile;
void VFS_UpdateMountFile(void);
// === GLOBALS ===
void VFS_UpdateMountFile(void);
// === GLOBALS ===
-
int glVFS_MountList = 0
;
+
tMutex glVFS_MountList
;
tVFS_Mount *gVFS_Mounts;
tVFS_Mount *gVFS_RootMount = NULL;
tVFS_Mount *gVFS_Mounts;
tVFS_Mount *gVFS_RootMount = NULL;
@@
-82,7
+82,7
@@
int VFS_Mount(char *Device, char *MountPoint, char *Filesystem, char *Options)
if(!gVFS_RootMount) gVFS_RootMount = mnt;
// Add to mount list
if(!gVFS_RootMount) gVFS_RootMount = mnt;
// Add to mount list
-
LOCK
( &glVFS_MountList );
+
Mutex_Acquire
( &glVFS_MountList );
{
tVFS_Mount *tmp;
mnt->Next = NULL;
{
tVFS_Mount *tmp;
mnt->Next = NULL;
@@
-94,7
+94,7
@@
int VFS_Mount(char *Device, char *MountPoint, char *Filesystem, char *Options)
gVFS_Mounts = mnt;
}
}
gVFS_Mounts = mnt;
}
}
-
RELEASE
( &glVFS_MountList );
+
Mutex_Release
( &glVFS_MountList );
Log_Log("VFS", "Mounted '%s' to '%s' ('%s')", Device, MountPoint, Filesystem);
Log_Log("VFS", "Mounted '%s' to '%s' ('%s')", Device, MountPoint, Filesystem);
UCC
git Repository :: git.ucc.asn.au