]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ipf/AccessPsr.s
Fix bug in AsmCpuVirtual() to return 1 instead of 0 when CPU is in virtual mode.
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ipf / AccessPsr.s
index 73785ebdb9903df3084bf40ac068ea2f20a614ca..7d6f6750bf454658534a20dd6b110a1118b60122 100644 (file)
@@ -1,7 +1,7 @@
 /// @file\r
 ///  IPF specific Processor Status Register accessing functions\r
 ///\r
-/// Copyright (c) 2006 - 2008, 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
@@ -103,6 +103,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