+++ /dev/null
-/** @file\r
- Execute 32-bit code in Protected Mode.\r
-\r
- Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
- SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
-**/\r
-\r
-#include <Uefi.h>\r
-#include <FspApi.h>\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *FSP_FUNCTION) (\r
- IN VOID *Param1\r
- );\r
-\r
-/**\r
- Wrapper for a thunk to transition from long mode to compatibility mode to execute 32-bit code and then transit back to\r
- long mode.\r
-\r
- @param[in] Function The 32bit code entry to be executed.\r
- @param[in] Param1 The first parameter to pass to 32bit code.\r
-\r
- @return EFI_STATUS.\r
-**/\r
-EFI_STATUS\r
-Execute32BitCode (\r
- IN UINT64 Function,\r
- IN UINT64 Param1\r
- )\r
-{\r
- FSP_FUNCTION EntryFunc;\r
- EFI_STATUS Status;\r
-\r
- EntryFunc = (FSP_FUNCTION) (UINTN) (Function);\r
- Status = EntryFunc ((VOID *)(UINTN)Param1);\r
-\r
- return Status;\r
-}\r
-\r