From 1073397b153e9ab2b282d95d2a55b25ac5a55e18 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Thu, 9 Jan 2020 21:02:42 +0100 Subject: [PATCH] New dynamic paging implementation (2) #67 --- include/mm/mm.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/mm/mm.h b/include/mm/mm.h index 5b2fc5a..a1a6c45 100644 --- a/include/mm/mm.h +++ b/include/mm/mm.h @@ -176,6 +176,18 @@ void *MmGetStackGuards(char rank); void *MmTransVirtToPhyAddr(void*); 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 typedef ulong pte_t;