X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FReadDr5.asm;h=091792dab9260688bbb7db048635c6959546f476;hp=bba8b602ba196abead08448782f6b1c50564b3ec;hb=a9a812a0ed4ab3d83941fdc6da281aebdb9bb296;hpb=741fb364170375f89aa9c29488cc402db07a3776 diff --git a/MdePkg/Library/BaseLib/Ia32/ReadDr5.asm b/MdePkg/Library/BaseLib/Ia32/ReadDr5.asm index bba8b602ba..091792dab9 100644 --- a/MdePkg/Library/BaseLib/Ia32/ReadDr5.asm +++ b/MdePkg/Library/BaseLib/Ia32/ReadDr5.asm @@ -33,6 +33,13 @@ ; ); ;------------------------------------------------------------------------------ AsmReadDr5 PROC + ; + ; DR5 is alias to DR7 only if DE (in CR4) is cleared. Otherwise, reading + ; this register will cause a #UD exception. + ; + ; MS assembler doesn't support this instruction since no one would use it + ; under normal circustances. Here opcode is used. + ; DB 0fh, 21h, 0e8h ret AsmReadDr5 ENDP