mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
set present bit in the PML4 entries
This commit is contained in:
parent
987ea13265
commit
a48e28f88f
1 changed files with 3 additions and 0 deletions
|
@ -265,6 +265,9 @@ int page_map_copy(task_t *dest)
|
|||
return 0;
|
||||
}
|
||||
|
||||
// set present bit
|
||||
dest->page_map |= PG_PRESENT;
|
||||
|
||||
spinlock_irqsave_lock(&curr_task->page_lock);
|
||||
self[PAGE_LEVELS-1][PAGE_MAP_ENTRIES-2] = dest->page_map | PG_PRESENT | PG_SELF | PG_RW;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue