New dynamic paging implementation (2) #67

This commit is contained in:
Adrien Bourmault 2020-01-09 21:02:42 +01:00
parent 2677c200f5
commit 1073397b15
1 changed files with 12 additions and 0 deletions

View File

@ -176,6 +176,18 @@ void *MmGetStackGuards(char rank);
void *MmTransVirtToPhyAddr(void*); void *MmTransVirtToPhyAddr(void*);
void *MmTransPhyToVirtAddr(void* virtualAddr); void *MmTransPhyToVirtAddr(void* virtualAddr);
//
// Set flags to a page
//
void MmSetPage(void* virtualAddr, ulong flags);
void MmUnSetPage(void* virtualAddr, ulong flags);
//
// Map a page
//
void MmMapPage(void* virtualAddr, void* physicalAddr, ulong flags)
void MmUnmapPage(void* virtualAddr);
// Page table entry // Page table entry
typedef ulong pte_t; typedef ulong pte_t;