\r
**/\r
\r
-typedef struct {\r
- UINT64 Status;\r
- UINT64 r9;\r
- UINT64 r10;\r
- UINT64 r11;\r
-} PAL_PROC_RETURN;\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
- 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
// 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
- while (Ticks - InternalIpfReadItc () >= 0);\r
+ while (Ticks - IpfReadItc () >= 0);\r
}\r
\r
/**\r
VOID\r
)\r
{\r
- return InternalIpfReadItc ();\r
+ return IpfReadItc ();\r
}\r
\r
/**\r