page: modify attributes of parent page tables
This commit is contained in:
parent
0a0235612e
commit
abbad89d7f
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ static uint64_t *pagemap_traverse(uint64_t *this_level, size_t next_num, uint64_
|
||||||
return NULL;
|
return NULL;
|
||||||
r = alloc_page();
|
r = alloc_page();
|
||||||
memset(r, 0, 4096);
|
memset(r, 0, 4096);
|
||||||
this_level[next_num] = (((uintptr_t)r | 3) & ~hhdm_start) | attr;
|
this_level[next_num] = (((uintptr_t)r | 3) & ~hhdm_start) | (attr & (PAGE_PRESENT | PAGE_USER));
|
||||||
} else {
|
} else {
|
||||||
r = (void *)((this_level[next_num] & -4096ull) | hhdm_start);
|
r = (void *)((this_level[next_num] & -4096ull) | hhdm_start);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue