From a9a812a0ed4ab3d83941fdc6da281aebdb9bb296 Mon Sep 17 00:00:00 2001 From: bxing Date: Wed, 10 Jan 2007 06:57:04 +0000 Subject: 1. Added comments to ASM files 2. Fixed a bug in 64-bit AsmDisablePaging64(), which may cause a #GP exception. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2206 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseLib/X64/ReadDr5.asm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'MdePkg/Library/BaseLib/X64/ReadDr5.asm') diff --git a/MdePkg/Library/BaseLib/X64/ReadDr5.asm b/MdePkg/Library/BaseLib/X64/ReadDr5.asm index 0582502220..3bee3a56ec 100644 --- a/MdePkg/Library/BaseLib/X64/ReadDr5.asm +++ b/MdePkg/Library/BaseLib/X64/ReadDr5.asm @@ -31,6 +31,10 @@ ; ); ;------------------------------------------------------------------------------ AsmReadDr5 PROC + ; + ; There's no obvious reason to access this register, since it's aliased to + ; DR7 when DE=0 or an exception generated when DE=1 + ; DB 0fh, 21h, 0e8h ret AsmReadDr5 ENDP -- cgit v1.2.3