Updated memory initializator

This commit is contained in:
Alex
2022-11-04 05:28:24 +02:00
parent 691f19841c
commit 359c88150f
2 changed files with 94 additions and 62 deletions

View File

@ -393,10 +393,11 @@ namespace Memory
* @brief Check if page is present
*
* @param VirtualAddress Virtual address of the page
* @param Flag Flag to check
* @return true if page is present
* @return false if page is not present
*/
bool Check(void *VirtualAddress);
bool Check(void *VirtualAddress, PTFlag Flag = PTFlag::P);
/**
* @brief Map page.
@ -471,6 +472,7 @@ void operator delete[](void *Pointer, long unsigned int Size);
extern Memory::Physical KernelAllocator;
extern Memory::PageTable *KernelPageTable;
extern Memory::PageTable *UserspaceKernelOnlyPageTable;
#endif // __cplusplus