MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / NotifyMemoryProtect

Function NotifyMemoryProtect

Source/Windows/ARM64EC/Module.cpp:871–884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

869}
870
871void NotifyMemoryProtect(void* Address, SIZE_T Size, ULONG NewProt, BOOL After, NTSTATUS Status) {
872 if (!InvalidationTracker || !GetCPUArea().ThreadState()) {
873 return;
874 }
875
876 if (!After) {
877 ThreadCreationMutex.lock();
878 } else {
879 if (!Status) {
880 InvalidationTracker->HandleMemoryProtectionNotification(reinterpret_cast<uint64_t>(Address), static_cast<uint64_t>(Size), NewProt);
881 }
882 ThreadCreationMutex.unlock();
883 }
884}
885
886NTSTATUS NotifyMapViewOfSection(void* Unk1, void* Address, void* Unk2, SIZE_T Size, ULONG AllocType, ULONG Prot) {
887 if (!InvalidationTracker || !GetCPUArea().ThreadState()) {

Callers

nothing calls this directly

Calls 4

GetCPUAreaFunction · 0.85
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected