diff options
author | geekboy15a <geekboy15a@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-06-01 22:46:53 +0000 |
---|---|---|
committer | geekboy15a <geekboy15a@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-06-01 22:46:53 +0000 |
commit | 2bd78c92c6a4fe4943675edddeb67e65a9a665be (patch) | |
tree | 4da75140d7aeaac2ef72302025bff186d6be602e | |
parent | f1329e6f5028a6e2b390077d000fe72ae6a1296d (diff) | |
download | edk2-2bd78c92c6a4fe4943675edddeb67e65a9a665be.tar.gz edk2-2bd78c92c6a4fe4943675edddeb67e65a9a665be.tar.bz2 edk2-2bd78c92c6a4fe4943675edddeb67e65a9a665be.zip |
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
-rw-r--r-- | MdePkg/Library/BaseLib/Ia32/GccInline.c | 2 | ||||
-rw-r--r-- | 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)
);
}
|