]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/IA32/CpuIA32.c
Sync all bug fixes between EDK1.04 and EDK1.06 into EdkCompatibilityPkg.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Cpu / Pentium / CpuIA32Lib / IA32 / CpuIA32.c
index 4956179bab768dcc795affacded72227cd0bb5b0..b4dc7e0b226881dfa3f319133894d531a3e66d1b 100644 (file)
@@ -1,7 +1,7 @@
 /*++\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
@@ -106,10 +106,10 @@ EfiDisableCache (VOID)
     and   al, 60h\r
     cmp   al, 60h\r
     je    Exit\r
-    wbinvd\r
     mov   eax, cr0\r
     or    eax, 060000000h     \r
     mov   cr0, eax\r
+    wbinvd\r
 Exit:\r
   }\r
 }\r
@@ -118,7 +118,7 @@ VOID
 EfiEnableCache (VOID)\r
 {\r
   __asm {\r
-    invd\r
+    wbinvd\r
     mov   eax, cr0\r
     and   eax, 09fffffffh         \r
     mov   cr0, eax\r