utils::memory_protect

This commit is contained in:
Nekotekina 2017-03-13 12:40:54 +03:00
parent ed711c0e59
commit d09dd29054
4 changed files with 58 additions and 16 deletions

View file

@ -28,7 +28,7 @@
namespace vm
{
// Emulated virtual memory (4 GiB)
u8* const g_base_addr = static_cast<u8*>(memory_helper::reserve_memory(0x100000000));
u8* const g_base_addr = static_cast<u8*>(utils::memory_reserve(0x100000000));
// Memory locations
std::vector<std::shared_ptr<block_t>> g_locations;
@ -796,7 +796,7 @@ namespace vm
{
g_locations.clear();
memory_helper::free_reserved_memory(g_base_addr, 0x100000000);
utils::memory_decommit(g_base_addr, 0x100000000);
}
}