1
0
Fork 0
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:
Stefan Lankes 2015-08-28 07:56:56 +02:00
parent 987ea13265
commit a48e28f88f

View file

@ -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;