feat(mm): add page table management and on-demand mapping
This commit is contained in:
1 parent
ef45af5077
commit
6de7a0550a
2 files changed
+128
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#ifndef FROSTBYTE_PAGING_H
|
||||
#define FROSTBYTE_PAGING_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#define pagePresent 0x1
|
||||
#define pageWrite 0x2
|
||||
#define pageUser 0x4
|
||||
|
||||
bool pagingMap(uint64 virtualAddr, uint64 physicalAddr, uint64 flags);
|
||||
uint64 pagingResolve(uint64 virtualAddr);
|
||||
bool pagingMapUserRange(uint64 virtualAddr, uint64 size);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user