]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseTimerLibLocalApic/Ipf/IpfTimerLib.c
Removed duplicate PalCallStatic functions in different libraries. Moved ReadItc and...
[mirror_edk2.git] / MdePkg / Library / BaseTimerLibLocalApic / Ipf / IpfTimerLib.c
index 12803d9fa4120a858a0342032f7636573540d284..65b58bc54945ec96ff2187c5ad50020505ef2fcf 100644 (file)
 \r
 **/\r
 \r
 \r
 **/\r
 \r
-typedef struct {\r
-  UINT64                            Status;\r
-  UINT64                            r9;\r
-  UINT64                            r10;\r
-  UINT64                            r11;\r
-} PAL_PROC_RETURN;\r
 \r
 \r
-/**\r
-  Performs a PAL call using static calling convention.\r
-\r
-  An internal function to perform a PAL call using static calling convention.\r
-\r
-  @param  PalEntryPoint The entry point address of PAL. The address in ar.kr5\r
-                        would be used if this parameter were NULL on input.\r
-  @param  Arg1          The first argument of a PAL call.\r
-  @param  Arg1          The second argument of a PAL call.\r
-  @param  Arg1          The third argument of a PAL call.\r
-  @param  Arg1          The fourth argument of a PAL call.\r
-\r
-  @return The values returned in r8, r9, r10 and r11.\r
-\r
-**/\r
-PAL_PROC_RETURN\r
-PalCallStatic (\r
-  IN      CONST VOID                *PalEntryPoint,\r
-  IN      UINT64                    Arg1,\r
-  IN      UINT64                    Arg2,\r
-  IN      UINT64                    Arg3,\r
-  IN      UINT64                    Arg4\r
-  );\r
 \r
 \r
-/**\r
-  Returns the current value of ar.itc.\r
-\r
-  An internal function to return the current value of ar.itc, which is the\r
-  timer tick on IPF.\r
-\r
-  @return The currect value of ar.itc\r
-\r
-**/\r
-INT64\r
-InternalIpfReadItc (\r
-  VOID\r
-  );\r
 \r
 /**\r
   Performs a delay measured as number of ticks.\r
 \r
 /**\r
   Performs a delay measured as number of ticks.\r
@@ -83,14 +41,14 @@ InternalIpfDelay (
   //\r
   // The target timer count is calculated here\r
   //\r
   //\r
   // The target timer count is calculated here\r
   //\r
-  Ticks = InternalIpfReadItc () + Delay;\r
+  Ticks = IpfReadItc () + Delay;\r
 \r
   //\r
   // Wait until time out\r
   // Delay > 2^63 could not be handled by this function\r
   // Timer wrap-arounds are handled correctly by this function\r
   //\r
 \r
   //\r
   // Wait until time out\r
   // Delay > 2^63 could not be handled by this function\r
   // Timer wrap-arounds are handled correctly by this function\r
   //\r
-  while (Ticks - InternalIpfReadItc () >= 0);\r
+  while (Ticks - IpfReadItc () >= 0);\r
 }\r
 \r
 /**\r
 }\r
 \r
 /**\r
@@ -159,7 +117,7 @@ GetPerformanceCounter (
   VOID\r
   )\r
 {\r
   VOID\r
   )\r
 {\r
-  return InternalIpfReadItc ();\r
+  return IpfReadItc ();\r
 }\r
 \r
 /**\r
 }\r
 \r
 /**\r