Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

__ptcg, __ptcga

Microsoft Specific

Emits Purge Global Translation Cache (ptc.g), which is used to purge a range of addresses caused by a page teardown.


void __ptcg( 
   __int64 Address, 
      __int64 Range 
);
void __ptcga( 
   __int64 Address, 
      __int64 Range 
);

Parameters

[in] Address

Loaded into the first general register supplied to the instruction. Bits 0 to 60 specify the virtual address to purge. Bits 61 to 63 specify the region identifier.

[in] Range

Loaded into the second general register supplied to the instruction. Bits 2 to 7 represent the page size; other bits are ignored.

Intrinsic Architecture

__ptcg

IPF

__ptcga

IPF

Header file <intrin.h>

The __ptcga intrinsic emits the ptc.ga instruction, which is used if the purge is needed because of a page remapping to ensure that other processors update their advanced load address table (ALAT).

For appropriate use of these instructions, see the Intel IPF documentation.

These functions are only available in kernel mode and are only available as intrinsics.

END Microsoft Specific

Community Additions

ADD
Show:
© 2015 Microsoft