diff options
author | xdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-05-10 02:49:26 +0000 |
---|---|---|
committer | xdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-05-10 02:49:26 +0000 |
commit | 30c636a3f28c379d9a2fcc7e674c05cc6ebc2280 (patch) | |
tree | 221c01d1822212d30548e20b43670d4b3ddffd2b | |
parent | 5277dc8829cc40fab9e8856d03316bc4c32dba1f (diff) | |
download | edk2-30c636a3f28c379d9a2fcc7e674c05cc6ebc2280.tar.gz edk2-30c636a3f28c379d9a2fcc7e674c05cc6ebc2280.tar.bz2 edk2-30c636a3f28c379d9a2fcc7e674c05cc6ebc2280.zip |
Fix bug in AsmCpuVirtual() to return 1 instead of 0 when CPU is in virtual mode.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10476 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/AccessPsr.s | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/AccessPsr.s b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/AccessPsr.s index 00de3acaa5..cbd188abd1 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/AccessPsr.s +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/AccessPsr.s @@ -1,4 +1,4 @@ -/// Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+/// Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
/// This program and the accompanying materials
/// are licensed and made available under the terms and conditions of the BSD License
/// which accompanies this distribution. The full text of the license may be found at
@@ -102,6 +102,7 @@ AsmCpuVirtual:: and r28 = r30, r29;;
cmp.eq p6, p7 = r30, r28;;
(p6) mov r8 = CpuInVirtualMode;;
+(p6) br.ret.dpnt b0;;
(p7) cmp.eq p6, p7 = 0x0, r28;;
(p6) mov r8 = CpuInPhysicalMode;;
(p7) mov r8 = CpuInMixMode;;
|