New dynamic paging implementation (2) #67
This commit is contained in:
parent
2677c200f5
commit
1073397b15
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue