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

Method toPTE

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

Source from the content-addressed store, hash-verified

221}
222
223int MemoryManager::toPTE(const int virtualAddress)
224{
225 return (0xffc00000 + ((virtualAddress & 0xffc00000) >> 10) + (((virtualAddress & 0x003ff000) >> 12) * 4));
226}
227
228void MemoryManager::releasePages(enum AddressPoolType type, const int virtualAddress, const int count)
229{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected