x86_64 changes :

added atomic*64() functions
use int32 instead of long


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21430 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2007-06-17 10:50:18 +00:00
parent d08caee0a5
commit a3ca7ebc40
7 changed files with 114 additions and 5 deletions
+5
View File
@@ -3222,8 +3222,13 @@ common_unlock_node(int fd, bool kernel)
// We need to set the locking atomically - someone
// else might set one at the same time
#ifdef __x86_64__
if (fssh_atomic_test_and_set64((vint64_t *)&vnode->mandatory_locked_by,
0, (fssh_addr_t)descriptor) != (int64_t)descriptor)
#else
if (fssh_atomic_test_and_set((vint32_t *)&vnode->mandatory_locked_by,
0, (fssh_addr_t)descriptor) != (int32_t)descriptor)
#endif
status = FSSH_B_BAD_VALUE;
put_fd(descriptor);