]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix bug in AsmCpuVirtual() to return 1 instead of 0 when CPU is in virtual mode.
authorxdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 10 May 2010 02:49:26 +0000 (02:49 +0000)
committerxdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 10 May 2010 02:49:26 +0000 (02:49 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10476 6f19259b-4bc3-4df7-8a09-765794883524

EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/AccessPsr.s

index 00de3acaa5a064b04f873771c1c1e807c34734fc..cbd188abd108c8247285dd049934eece6fb5e27a 100644 (file)
@@ -1,4 +1,4 @@
-/// Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+/// Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
 /// This program and the accompanying materials\r
 /// are licensed and made available under the terms and conditions of the BSD License\r
 /// which accompanies this distribution.  The full text of the license may be found at\r
@@ -102,6 +102,7 @@ AsmCpuVirtual::
         and            r28 = r30, r29;;\r
         cmp.eq         p6, p7 = r30, r28;;\r
 (p6)    mov            r8 = CpuInVirtualMode;;\r
+(p6)    br.ret.dpnt    b0;;\r
 (p7)    cmp.eq         p6, p7 = 0x0, r28;;\r
 (p6)    mov            r8 = CpuInPhysicalMode;;\r
 (p7)    mov            r8 = CpuInMixMode;;\r