Volume 2, Part 2: Memory Management
2:569
A data or instruction serialization operation must be performed after the
ptc.l
before
the translation is guaranteed to be no longer visible to the local data or instruction
stream, respectively.
The
ptc.l
instruction does not modify the page tables nor any other memory location,
nor does it affect the TLB state of any processor other than the one on which it is
executed.
The
ptc.l
instruction ensures that all prior stores are made locally visible before the
actual purge operation is performed. Consider the following code sequence:
st8 [VHPT] = <new_translation>
ptc.l <old_translation>
srlz.i
The
ptc.l
instruction will purge the translation only after the local store update is seen.
If there was a hardware-initiated VHPT walk for the same translation, it would either
insert the
old_translation
in the TLB before the
ptc.l
executes and then get purged by
the
ptc.l
, or insert the
new_translation
after both the local store update and
ptc.l
purge are complete.
5.2.2.2.2
ptc.e
To purge all TC entries from the local processor’s TLBs, software uses a series of
ptc.e
instructions. Software must call the PAL_PTCE_INFO PAL routine at boot time to
determine the parameters needed to use the
ptc.e
instruction. Specifically,
PAL_PTCE_INFO returns:
• tc_base – an unsigned 64-bit integer denoting the beginning address to be used by
the first
ptc.e
instruction in the purge loop.
• tc_counts – two unsigned 32-bit integers packed into a 64-bit parameter denoting
the loop counts of the outer and inner purge loops. count1 (outer loop) is contained
in bits {63:32} of the parameter, and count2 (inner loop) is contained in bits
{31:0} of the parameter.
• tc_strides – two unsigned 32-bit integers packed into a 64-bit parameter denoting
the loop stride of the outer and inner purge loops. stride1 (outer loop) is contained
in bits {63:32} of the parameter, and stride2 (inner loop) is contained in bits
{31:0} of the parameter.
Software then executes the following sequence:
disable_interrupts();
addr = tc_base;
for (i = 0; i < count1; i++) {
for (j = 0; j < count2; j++) {
ptc.e addr;
addr += stride2;
}
addr += stride1;
}
enable_interrupts();
A data or instruction serialization operation must be performed after the sequence
shown above before the translations are guaranteed to be no longer visible to the local
data or instruction stream, respectively.
The
ptc.e
instruction does not modify the page tables nor any other memory location,
nor does it affect the TLB state of any processor other than the one on which it is
executed.
Содержание ITANIUM ARCHITECTURE - SOFTWARE DEVELOPERS VOLUME 3 REV 2.3
Страница 1: ......
Страница 11: ...x Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 12: ...1 1 Intel Itanium Architecture Software Developer s Manual Rev 2 3 Part I Application Architecture Guide ...
Страница 13: ...1 2 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 33: ...1 22 Volume 1 Part 1 Introduction to the Intel Itanium Architecture ...
Страница 57: ...1 46 Volume 1 Part 1 Execution Environment ...
Страница 147: ...1 136 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 149: ...1 138 Volume 1 Part 2 About the Optimization Guide ...
Страница 191: ...1 180 Volume 1 Part 2 Predication Control Flow and Instruction Stream ...
Страница 230: ......
Страница 248: ...236 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 249: ...2 1 Intel Itanium Architecture Software Developer s Manual Rev 2 3 Part I System Architecture Guide ...
Страница 250: ...2 2 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 264: ...2 16 Volume 2 Part 1 Intel Itanium System Environment ...
Страница 380: ...2 132 Volume 2 Part 1 Interruptions ...
Страница 398: ...2 150 Volume 2 Part 1 Register Stack Engine ...
Страница 486: ...2 238 Volume 2 Part 1 IA 32 Interruption Vector Descriptions ...
Страница 749: ...2 501 Intel Itanium Architecture Software Developer s Manual Rev 2 3 Part II System Programmer s Guide ...
Страница 750: ...2 502 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 754: ...2 506 Volume 2 Part 2 About the System Programmer s Guide ...
Страница 796: ...2 548 Volume 2 Part 2 Interruptions and Serialization ...
Страница 808: ...2 560 Volume 2 Part 2 Context Management ...
Страница 842: ...2 594 Volume 2 Part 2 Floating point System Software ...
Страница 850: ...2 602 Volume 2 Part 2 IA 32 Application Support ...
Страница 862: ...2 614 Volume 2 Part 2 External Interrupt Architecture ...
Страница 870: ...2 622 Volume 2 Part 2 Performance Monitoring Support ...
Страница 891: ......
Страница 941: ...3 42 Volume 3 Instruction Reference cmp illegal_operation_fault PR p1 0 PR p2 0 Interruptions Illegal Operation fault ...
Страница 1099: ...3 200 Volume 3 Instruction Reference padd Interruptions Illegal Operation fault ...
Страница 1191: ...3 292 Volume 3 Pseudo Code Functions Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 1295: ...3 396 Volume 3 Resource and Dependency Semantics ...
Страница 1296: ......
Страница 1302: ...402 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 1494: ...4 192 Volume 4 Base IA 32 Instruction Reference FWAIT Wait See entry for WAIT ...
Страница 1564: ...4 262 Volume 4 Base IA 32 Instruction Reference LES Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 1565: ...Volume 4 Base IA 32 Instruction Reference 4 263 LFS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 1568: ...4 266 Volume 4 Base IA 32 Instruction Reference LGS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 1583: ...Volume 4 Base IA 32 Instruction Reference 4 281 LSS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 1647: ...Volume 4 Base IA 32 Instruction Reference 4 345 ROL ROR Rotate See entry for RCL RCR ROL ROR ...
Страница 1663: ...Volume 4 Base IA 32 Instruction Reference 4 361 SHL SHR Shift Instructions See entry for SAL SAR SHL SHR ...
Страница 1668: ...4 366 Volume 4 Base IA 32 Instruction Reference SIDT Store Interrupt Descriptor Table Register See entry for SGDT SIDT ...
Страница 1884: ...4 582 Volume 4 IA 32 SSE Instruction Reference ...
Страница 1885: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 Index ...
Страница 1886: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 1898: ...INDEX Index 12 Index for Volumes 1 2 3 and 4 ...