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

Method toPTE

lab7/src/5/src/kernel/memory.cpp:255–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255int MemoryManager::toPTE(const int virtualAddress)
256{
257 return (0xffc00000 + ((virtualAddress & 0xffc00000) >> 10) + (((virtualAddress & 0x003ff000) >> 12) * 4));
258}
259
260void MemoryManager::releasePages(enum AddressPoolType type, const int virtualAddress, const int count)
261{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected