Skip to content

Commit

Permalink
以为发现get_pte写错了😅
Browse files Browse the repository at this point in the history
  • Loading branch information
Rythorndoran authored Dec 10, 2022
1 parent 08cbbf5 commit 3f05022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PageTableHook/PageHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ namespace PageHook
auto get_pte(std::uint64_t virt) -> pte_64*
{
//PTE的index*8+PTE基质
auto pte_idx = (virt >> 21) & 0xFFFFFFFFF;
auto pte_idx = (virt >> 12) & 0xFFFFFFFFF;
return reinterpret_cast<pte_64*>((pte_idx << 3) + pte_base);
}

Expand Down

0 comments on commit 3f05022

Please sign in to comment.