/* Internal worker function that transfers control to an enabled periodic SMI handler. If the enabled periodic SMI handler was allocated its own stack, then this function is called on that allocated stack through the BaseLin function SwitchStack(). */
VOID EFIAPI PeriodicSmiDispatchFunctionSwitchStack(IN VOID *Context1 OPTIONAL, IN VOID *Context2 OPTIONAL)
/* Internal worker function that transfers control to an enabled periodic SMI handler. If the enabled periodic SMI handler was allocated its own stack, then this function is called on that allocated stack through the BaseLin function SwitchStack(). */
VOID EFIAPI PeriodicSmiDispatchFunctionSwitchStack(IN VOID *Context1 OPTIONAL, IN VOID *Context2 OPTIONAL)
{
  PERIODIC_SMI_LIBRARY_HANDLER_CONTEXT  *PeriodicSmiLibraryHandler;
  PeriodicSmiLibraryHandler = (PERIODIC_SMI_LIBRARY_HANDLER_CONTEXT *)Context1;
  PeriodicSmiLibraryHandler->DispatchFunction (
                               PeriodicSmiLibraryHandler->Context,
                               PeriodicSmiLibraryHandler->ElapsedTime
                               );
  PeriodicSmiExit ();
}