]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OptionRomPkg/Application/BltLibSample/BltLibSample.c
OptionRomPkg: Removing ipf which is no longer supported from edk2.
[mirror_edk2.git] / OptionRomPkg / Application / BltLibSample / BltLibSample.c
index 300b9ee117ab8074adaa396d1825238a9406ee17..886314d63057d176d6c0748400b0bdbdc8a1c0ac 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Example program using BltLib\r
 \r
-  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, 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
@@ -27,8 +27,6 @@ ReadTimestamp (
 {\r
 #if defined (MDE_CPU_IA32) || defined (MDE_CPU_X64)\r
   return AsmReadTsc ();\r
-#elif defined (MDE_CPU_IPF)\r
-  return AsmReadItc ();\r
 #else\r
 #error ReadTimestamp not supported for this architecture!\r
 #endif\r
@@ -40,7 +38,7 @@ Rand32 (
   )\r
 {\r
   UINTN    Found;\r
-  UINTN    Bits;\r
+  INTN     Bits;\r
   UINT64   Tsc1;\r
   UINT64   Tsc2;\r
   UINT64   TscBits;\r
@@ -58,7 +56,7 @@ Rand32 (
       Bits = Bits - 1;\r
     }\r
     R32 = (UINT32)((R32 << Bits) |\r
-                   RShiftU64 (LShiftU64 (TscBits, 64 - Bits), 64 - Bits));\r
+                   RShiftU64 (LShiftU64 (TscBits, (UINTN) (64 - Bits)), (UINTN) (64 - Bits)));\r
     Found = Found + Bits;\r
   } while (Found < 32);\r
 \r