]> 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 9b4fe49ff123ac2ddf4b5c5bcc4e02e899b67cb3..7d6f6750bf454658534a20dd6b110a1118b60122 100644 (file)
@@ -1,8 +1,8 @@
 /// @file\r
 ///  IPF specific Processor Status Register accessing functions\r
 ///\r
-/// Copyright (c) 2006, Intel Corporation\r
-/// All rights reserved. This program and the accompanying materials\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
 /// http://opensource.org/licenses/bsd-license.php\r
@@ -103,8 +103,9 @@ 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
         br.ret.dpnt    b0;;\r
-.endp   AsmCpuVirtual
\ No newline at end of file
+.endp   AsmCpuVirtual\r