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

Method toPDE

lab8/src/1/src/kernel/memory.cpp:250–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250int MemoryManager::toPDE(const int virtualAddress)
251{
252 return (0xfffff000 + (((virtualAddress & 0xffc00000) >> 22) * 4));
253}
254
255int MemoryManager::toPTE(const int virtualAddress)
256{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected