MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / getModuleEip

Method getModuleEip

source/kernel/kprocess.cpp:664–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662}
663
664U32 KProcess::getModuleEip(U32 eip) {
665 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(mappedFilesMutex);
666 for (auto& n : this->mappedFiles) {
667 std::shared_ptr<MappedFile> mappedFile = n.value;
668 if (eip>=mappedFile->address && eip<mappedFile->address+mappedFile->len)
669 return (U32)(eip-mappedFile->address+mappedFile->offset);
670 }
671 return 0;
672}
673
674U32 KProcess::alarm(U32 seconds) {
675 U32 prev = this->timer.millies;

Callers 5

printStackMethod · 0.95
logBlockFunction · 0.80
preFpuLogFunction · 0.80
walkStackMethod · 0.80
logPageFaultMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected