MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / GetTrapFrame

Function GetTrapFrame

Kernel-Bridge/API/IO.cpp:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23#ifdef _AMD64_
24 PKTRAP_FRAME GetTrapFrame() {
25 return reinterpret_cast<PKTRAP_FRAME>(
26 reinterpret_cast<SIZE_T>(IoGetInitialStack()) - sizeof(KTRAP_FRAME)
27 );
28 }
29
30 void RaiseIopl() {
31 GetTrapFrame()->EFlags |= IoplAccessMask;

Callers 2

RaiseIoplFunction · 0.85
ResetIoplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected