Changeset 530 for trunk/kernel/mm
- Timestamp:
- Sep 21, 2018, 10:19:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/vmm.c
r528 r530 1384 1384 if( flags & VSEG_DISTRIB ) // distributed => cxy depends on vpn LSB 1385 1385 { 1386 uint32_t x_ size = LOCAL_CLUSTER->x_size;1387 uint32_t y_ size = LOCAL_CLUSTER->y_size;1386 uint32_t x_max = LOCAL_CLUSTER->x_max; // [FIXME] 1387 uint32_t y_max = LOCAL_CLUSTER->y_max; // [FIXME] 1388 1388 uint32_t y_width = LOCAL_CLUSTER->y_width; 1389 uint32_t index = vpn & ((x_ size * (y_size - 1)) - 1); // [FIXME]1390 uint32_t x = index / (y_size - 1); // [FIXME]1391 uint32_t y = index % (y_size - 1); // [FIXME]1389 uint32_t index = vpn & ((x_max * y_max) - 1); // [FIXME] 1390 uint32_t x = index / y_max; // [FIXME] 1391 uint32_t y = index % y_max; // [FIXME] 1392 1392 page_cxy = (x<<y_width) + y; 1393 1393 }
Note: See TracChangeset
for help on using the changeset viewer.