fix: add flag when page-frame link
This commit is contained in:
parent
886f912f36
commit
3372e386f5
@ -44,7 +44,7 @@ void *alloc_pages(size_t size)
|
||||
PAGE_SIZE);
|
||||
return NULL;
|
||||
}
|
||||
page_table_entries[i] = (uint32_t)frame << 12;
|
||||
page_table_entries[i] = (uint32_t)frame << 12 | INIT_FLAGS;
|
||||
}
|
||||
return (void *)(page_table_entries[index] >> 12);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user