aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/amd64/pmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/pmap.c b/sys/arch/amd64/amd64/pmap.c
index a7a4eaa..5fe1e3b 100644
--- a/sys/arch/amd64/amd64/pmap.c
+++ b/sys/arch/amd64/amd64/pmap.c
@@ -86,9 +86,9 @@ pmap_get_level_index(uint8_t level, vaddr_t va)
case 3:
return (va >> 30) & 0x1FF;
case 2:
- return (va >> 29) & 0x1FF;
+ return (va >> 21) & 0x1FF;
case 1:
- return (va >> 20) & 0x1FF;
+ return (va >> 12) & 0x1FF;
default: /* Should not be reachable */
return 0;
}