Ticket #845: amd64.diff
File amd64.diff, 4.3 KB (added by , 17 years ago) |
---|
-
src/tools/fs_shell/vfs.cpp
3223 3223 // We need to set the locking atomically - someone 3224 3224 // else might set one at the same time 3225 3225 if (fssh_atomic_test_and_set((vint32_t *)&vnode->mandatory_locked_by, 3226 0, (fssh_addr_t)descriptor) != ( int32_t)descriptor)3226 0, (fssh_addr_t)descriptor) != (uint64_t)descriptor) 3227 3227 status = FSSH_B_BAD_VALUE; 3228 3228 3229 3229 put_fd(descriptor); -
src/tools/fs_shell/block_cache.cpp
951 951 if (_unchangedData) 952 952 *_unchangedData = block->original_data; 953 953 954 *_cookie = (uint 32_t)block;954 *_cookie = (uint64_t)block; 955 955 return FSSH_B_OK; 956 956 } 957 957 -
src/add-ons/kernel/file_systems/bfs/BPlusTree.cpp
1908 1908 nextOffset = node->OverflowLink(); 1909 1909 else { 1910 1910 if (node->AllKeyLength() > fTree->fNodeSize 1911 || (uint 32)node->Values() > (uint32)node + fTree->fNodeSize1911 || (uint64)node->Values() > (uint64)node + fTree->fNodeSize 1912 1912 - 8 * node->NumKeys()) 1913 1913 RETURN_ERROR(B_ERROR); 1914 1914 -
src/add-ons/kernel/file_systems/bfs/Journal.cpp
77 77 add_to_iovec(iovec *vecs, int32 &index, int32 max, const void *address, size_t size) 78 78 { 79 79 if (index > 0 80 && ( addr_t)vecs[index - 1].iov_base + vecs[index - 1].iov_len == (addr_t)address) {80 && (uint64)vecs[index - 1].iov_base + vecs[index - 1].iov_len == (uint64)address) { 81 81 // the iovec can be combined with the previous one 82 82 vecs[index - 1].iov_len += size; 83 83 return; -
src/add-ons/kernel/file_systems/bfs/bfs.h
365 365 // we need to check the location first, because if name_size is already beyond 366 366 // the block, we would touch invalid memory (although that can't cause wrong 367 367 // results) 368 return (uint 32)this > (uint32)inode + inode->InodeSize() - sizeof(small_data) || name_size == 0;368 return (uint64)this > (uint64)inode + inode->InodeSize() - sizeof(small_data) || name_size == 0; 369 369 } 370 370 371 371 #ifdef _BOOT_MODE -
src/add-ons/kernel/file_systems/bfs/Debug.cpp
206 206 buffer[length] = '\0'; 207 207 208 208 off_t *value = node->Values() + i; 209 if ((uint 32)value < (uint32)node || (uint32)value > (uint32)node + header->node_size)209 if ((uint64)value < (uint64)node || (uint64)value > (uint64)node + header->node_size) 210 210 Print(" %2d. Invalid Offset!!\n", (int)i); 211 211 else { 212 212 Print(" %2d. ", (int)i); -
headers/private/fs_shell/fssh_errors.h
10 10 11 11 12 12 /* Error baselines */ 13 #define FSSH_B_GENERAL_ERROR_BASE LONG_MIN13 #define FSSH_B_GENERAL_ERROR_BASE INT_MIN 14 14 #define FSSH_B_OS_ERROR_BASE FSSH_B_GENERAL_ERROR_BASE + 0x1000 15 15 #define FSSH_B_APP_ERROR_BASE FSSH_B_GENERAL_ERROR_BASE + 0x2000 16 16 #define FSSH_B_INTERFACE_ERROR_BASE FSSH_B_GENERAL_ERROR_BASE + 0x3000 -
headers/private/fs_shell/fssh_types.h
6 6 typedef uint32_t fssh_ulong; 7 7 typedef volatile int32_t vint32_t; 8 8 9 typedef uint 32_t fssh_addr_t;9 typedef uint64_t fssh_addr_t; 10 10 11 11 typedef int32_t fssh_dev_t; 12 12 typedef int64_t fssh_ino_t;