Fix vm::reservation_notifier

This commit is contained in:
Nekotekina 2018-05-20 15:13:01 +03:00
parent 7a6db3dd7e
commit fb0f5f0c8b

View File

@ -102,7 +102,7 @@ namespace vm
// Get reservation sync variable // Get reservation sync variable
inline notifier& reservation_notifier(u32 addr, u32 size) inline notifier& reservation_notifier(u32 addr, u32 size)
{ {
return *reinterpret_cast<notifier*>(g_reservations2 + addr / 16); return *reinterpret_cast<notifier*>(g_reservations2 + addr / 128 * 8);
} }
// Change memory protection of specified memory region // Change memory protection of specified memory region