MCPcopy Create free account
hub / github.com/YatSenOS/YatSenOS-Tutorial-Volume-1 / toPDE

Method toPDE

lab8/src/6/src/kernel/memory.cpp:218–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218int MemoryManager::toPDE(const int virtualAddress)
219{
220 return (0xfffff000 + (((virtualAddress & 0xffc00000) >> 22) * 4));
221}
222
223int MemoryManager::toPTE(const int virtualAddress)
224{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected