pc64: fix mistake
This commit is contained in:
parent
25189924db
commit
240ba73770
1 changed files with 2 additions and 2 deletions
|
@ -217,8 +217,8 @@ mmucreate(uintptr *table, uintptr va, int level, int index)
|
||||||
assert((va < TSTKTOP) || (va >= KMAP && va < KMAP+KMAPSIZE));
|
assert((va < TSTKTOP) || (va >= KMAP && va < KMAP+KMAPSIZE));
|
||||||
|
|
||||||
p = mmualloc();
|
p = mmualloc();
|
||||||
p->index = level;
|
p->index = index;
|
||||||
p->level = index;
|
p->level = level;
|
||||||
if(va < TSTKTOP){
|
if(va < TSTKTOP){
|
||||||
flags |= PTEUSER;
|
flags |= PTEUSER;
|
||||||
if(level == PML4E){
|
if(level == PML4E){
|
||||||
|
|
Loading…
Reference in a new issue