Skip to content

Instantly share code, notes, and snippets.

@JustasMasiulis
Last active April 4, 2019 12:27
Show Gist options
  • Save JustasMasiulis/91763874f136e72d6bc303bec7e6aad9 to your computer and use it in GitHub Desktop.
Save JustasMasiulis/91763874f136e72d6bc303bec7e6aad9 to your computer and use it in GitHub Desktop.
void MiFinalizePageAttribute(_MMPFN *pfn, MI_PFN_CACHE_ATTRIBUTE cacheAttribute, unsigned int pfnLocked)
{
if(pfn->u3.e1.CacheAttribute != cacheAttribute)
MiChangePageAttribute(pfn, cacheAttribute, pfnLocked);
MiSetPfnTbFlushStamp(pfn, 0i64, pfnLocked);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment