Changeset 530 for trunk/kernel/fs
- Timestamp:
- Sep 21, 2018, 10:19:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/fs/vfs.c
r528 r530 1127 1127 cxy_t vfs_cluster_random_select( void ) 1128 1128 { 1129 uint32_t x_ size = LOCAL_CLUSTER->x_size;1130 uint32_t y_ size = LOCAL_CLUSTER->y_size;1129 uint32_t x_max = LOCAL_CLUSTER->x_max; // [FIXME] 1130 uint32_t y_max = LOCAL_CLUSTER->y_max; // [FIXME] 1131 1131 uint32_t y_width = LOCAL_CLUSTER->y_width; 1132 uint32_t index = ( hal_get_cycles() + hal_get_gid() ) % (x_ size * (y_size - 1)); // [FIXME]1133 uint32_t x = index / (y_size - 1); // [FIXME]1134 uint32_t y = index % (y_size - 1); // [FIXME]1132 uint32_t index = ( hal_get_cycles() + hal_get_gid() ) % (x_max * y_max); // [FIXME] 1133 uint32_t x = index / y_max; // [FIXME] 1134 uint32_t y = index % y_max; // [FIXME] 1135 1135 1136 1136 return (x<<y_width) + y;
Note: See TracChangeset
for help on using the changeset viewer.