image/svg+xmlRDPKRU—Read Protection Key Rights for User PagesInstruction Operand EncodingDescriptionReads the value of PKRU into EAX and clears EDX. ECX must be 0 when RDPKRU is executed; otherwise, a general-protection exception (#GP) occurs.RDPKRU can be executed only if CR4.PKE= 1; otherwise, an invalid-opcode exception (#UD) occurs. Software can discover the value of CR4.PKE by examining CPUID.(EAX=07H,ECX=0H):ECX.OSPKE [bit 4].On processors that support the Intel64 Architecture, the high-order 32-bits of RCX are ignored and the high-order 32-bits of RDX and RAX are cleared.OperationIF (ECX = 0) THENEAX := PKRU;EDX := 0;ELSE #GP(0); FI;Flags AffectedNone.C/C++ Compiler Intrinsic EquivalentRDPKRU:uint32_t _rdpkru_u32(void);Protected Mode Exceptions#GP(0)If ECX 0. #UD If the LOCK prefix is used.If CR4.PKE = 0.Real-Address Mode ExceptionsSame exceptions as in protected mode.Virtual-8086 Mode ExceptionsSame exceptions as in protected mode.Compatibility Mode ExceptionsSame exceptions as in protected mode.Opcode*InstructionOp/ En64/32bit Mode SupportCPUID Feature FlagDescriptionNP 0F 01 EERDPKRUZOV/VOSPKEReads PKRU into EAX.Op/EnOperand 1Operand 2Operand 3Operand 4ZONANANANA

image/svg+xml64-Bit Mode ExceptionsSame exceptions as in protected mode.

This UNOFFICIAL reference was generated from the official Intel® 64 and IA-32 Architectures Software Developer’s Manual by a dumb script. There is no guarantee that some parts aren't mangled or broken and is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.