diff options
author | xdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-05-10 02:48:44 +0000 |
---|---|---|
committer | xdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-05-10 02:48:44 +0000 |
commit | 5277dc8829cc40fab9e8856d03316bc4c32dba1f (patch) | |
tree | e4aaf3d19f01c1aef3498aefca1c3f729eb15abe /MdePkg/Library/BaseLib | |
parent | e35eb8af7b27e0c035f668787d366d05c608ac81 (diff) | |
download | edk2-platforms-5277dc8829cc40fab9e8856d03316bc4c32dba1f.tar.xz |
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@10475 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib')
-rw-r--r-- | MdePkg/Library/BaseLib/Ipf/AccessPsr.s | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseLib/Ipf/AccessPsr.s b/MdePkg/Library/BaseLib/Ipf/AccessPsr.s index 73785ebdb9..7d6f6750bf 100644 --- a/MdePkg/Library/BaseLib/Ipf/AccessPsr.s +++ b/MdePkg/Library/BaseLib/Ipf/AccessPsr.s @@ -1,7 +1,7 @@ /// @file
/// IPF specific Processor Status Register accessing functions
///
-/// Copyright (c) 2006 - 2008, 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
@@ -103,6 +103,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;;
|