From 2bd78c92c6a4fe4943675edddeb67e65a9a665be Mon Sep 17 00:00:00 2001 From: geekboy15a Date: Tue, 1 Jun 2010 22:46:53 +0000 Subject: [PATCH] Fixed issue with InternalX86ReadIdtr referencing LDT read and not IDT read operation. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10559 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseLib/Ia32/GccInline.c | 2 +- MdePkg/Library/BaseLib/X64/GccInline.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MdePkg/Library/BaseLib/Ia32/GccInline.c b/MdePkg/Library/BaseLib/Ia32/GccInline.c index e6a9e171f4..80db16c28b 100644 --- a/MdePkg/Library/BaseLib/Ia32/GccInline.c +++ b/MdePkg/Library/BaseLib/Ia32/GccInline.c @@ -1082,7 +1082,7 @@ InternalX86ReadIdtr ( ) { __asm__ __volatile__ ( - "sldt %0" + "sidt %0" : "=m" (*Idtr) ); } diff --git a/MdePkg/Library/BaseLib/X64/GccInline.c b/MdePkg/Library/BaseLib/X64/GccInline.c index 8be2bef121..6a4b5d5c45 100644 --- a/MdePkg/Library/BaseLib/X64/GccInline.c +++ b/MdePkg/Library/BaseLib/X64/GccInline.c @@ -1092,7 +1092,7 @@ InternalX86ReadIdtr ( ) { __asm__ __volatile__ ( - "sldt %0" + "sidt %0" : "=m" (*Idtr) ); } -- 2.39.2