/**\r
Transfer AP to safe hlt-loop after it finished restore CPU features on S3 patch.\r
\r
- @param[in] ApHltLoopCode The 32-bit address of the safe hlt-loop function.\r
- @param[in] TopOfStack A pointer to the new stack to use for the ApHltLoopCode.\r
- @param[in] NumberToFinish Semaphore of APs finish count.\r
+ @param[in] ApHltLoopCode The address of the safe hlt-loop function.\r
+ @param[in] TopOfStack A pointer to the new stack to use for the ApHltLoopCode.\r
+ @param[in] NumberToFinishAddress Address of Semaphore of APs finish count.\r
\r
**/\r
VOID\r
TransferApToSafeState (\r
- IN UINT32 ApHltLoopCode,\r
- IN UINT32 TopOfStack,\r
- IN UINT32 *NumberToFinish\r
+ IN UINTN ApHltLoopCode,\r
+ IN UINTN TopOfStack,\r
+ IN UINTN NumberToFinishAddress\r
)\r
{\r
SwitchStack (\r
- (SWITCH_STACK_ENTRY_POINT) (UINTN) ApHltLoopCode,\r
- NumberToFinish,\r
+ (SWITCH_STACK_ENTRY_POINT)ApHltLoopCode,\r
+ (VOID *)NumberToFinishAddress,\r
NULL,\r
- (VOID *) (UINTN) TopOfStack\r
+ (VOID *)TopOfStack\r
);\r
//\r
// It should never reach here\r