Changeset 528 for trunk/kernel/mm
- Timestamp:
- Sep 21, 2018, 10:15:58 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/vmm.c
r492 r528 1387 1387 uint32_t y_size = LOCAL_CLUSTER->y_size; 1388 1388 uint32_t y_width = LOCAL_CLUSTER->y_width; 1389 uint32_t index = vpn & ((x_size * y_size) - 1);1390 uint32_t x = index / y_size;1391 uint32_t y = index % y_size;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] 1392 1392 page_cxy = (x<<y_width) + y; 1393 1393 }
Note: See TracChangeset
for help on using the changeset viewer.