/* Wrapper for a thunk to transition from long mode to compatibility mode to execute 32-bit code and then transit back to long mode. */
EFI_STATUS Execute32BitCode(IN UINT64 Function, IN UINT64 Param1, IN UINT64 Param2)
/* Wrapper for a thunk to transition from long mode to compatibility mode to execute 32-bit code and then transit back to long mode. */
EFI_STATUS Execute32BitCode(IN UINT64 Function, IN UINT64 Param1, IN UINT64 Param2)
{
  FSP_FUNCTION  EntryFunc;
  EFI_STATUS    Status;
  EntryFunc = (FSP_FUNCTION)(UINTN)(Function);
  Status    = EntryFunc ((VOID *)(UINTN)Param1, (VOID *)(UINTN)Param2);
  return Status;
}