|
SimpleKernel 1.17.0
|
Functions | |
| auto | GetUserPagePermissions (bool readable=true, bool writable=false, bool executable=false, bool global=false) -> uint64_t |
| auto | GetKernelPagePermissions (bool readable=true, bool writable=false, bool executable=false, bool global=false) -> uint64_t |
| void | SetPageDirectory (uint64_t pd) |
| auto | GetPageDirectory () -> uint64_t |
| void | EnablePage () |
| void | FlushTLBAll () |
| auto | GetTableEntryPermissions () -> uint64_t |
| auto | GetVirtualPageNumber (uint64_t virtual_addr, size_t level) -> uint64_t |
| auto | PageAlign (uint64_t addr) -> uint64_t |
| auto | PageAlignUp (uint64_t addr) -> uint64_t |
| auto | IsPageAligned (uint64_t addr) -> bool |
| auto | IsPageTableEntryValid (uint64_t pte) -> bool |
| auto | PageTableEntryToPhysical (uint64_t pte) -> uint64_t |
| auto | PhysicalToPageTableEntry (uint64_t physical_addr, uint64_t flags) -> uint64_t |
Variables | |
| static constexpr size_t | kPageSize = 4096 |
| static constexpr size_t | kPteAttributeBits = 12 |
| static constexpr size_t | kPageOffsetBits = 12 |
| static constexpr size_t | kVpnBits = 9 |
| static constexpr size_t | kVpnMask = 0x1FF |
| static constexpr size_t | kPageTableLevels = 4 |
| static constexpr uint64_t | kValid = 0x1 |
| static constexpr uint64_t | kWrite = 0x2 |
| static constexpr uint64_t | kUser = 0x4 |
| static constexpr uint64_t | kRead = 0x200 |
| static constexpr uint64_t | kExec = 0x400 |
| static constexpr uint64_t | kGlobal = 0x100 |
|
inline |
Definition at line 134 of file cpu_io.h.


|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |