summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/9/pc64/mmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/pc64/mmu.c b/sys/src/9/pc64/mmu.c
index 2d7633aa6..4f6b8414b 100644
--- a/sys/src/9/pc64/mmu.c
+++ b/sys/src/9/pc64/mmu.c
@@ -217,8 +217,8 @@ mmucreate(uintptr *table, uintptr va, int level, int index)
assert((va < TSTKTOP) || (va >= KMAP && va < KMAP+KMAPSIZE));
p = mmualloc();
- p->index = level;
- p->level = index;
+ p->index = index;
+ p->level = level;
if(va < TSTKTOP){
flags |= PTEUSER;
if(level == PML4E){