Skip to content

Commit

Permalink
Removed useless code for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonomango authored Jul 20, 2023
1 parent cc008c7 commit 86ca9f5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions um/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@ int main() {
}
});

auto cr3 = hv::query_process_cr3(3012);
auto phys = hv::get_physical_address(cr3, (void*)(0x7ff716820000 + 0x1000));

printf("Physical address: %zX\n", phys);

hv::for_each_cpu([&](uint32_t) {
hv::install_mmr(phys, 0x1, hv::mmr_memory_mode_r);
});

printf("Pinged the hypervisor! Flushing logs...\n");

while (!GetAsyncKeyState(VK_RETURN)) {
Expand Down

0 comments on commit 86ca9f5

Please sign in to comment.