]>
git.proxmox.com Git - mirror_edk2.git/blob - IntelFsp2WrapperPkg/Library/BaseFspWrapperApiLib/IA32/DispatchExecute.c
2 Execute 32-bit code in Protected Mode.
4 Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
21 @param[in] Param1 The first parameter to pass to 32bit code.
22 @param[in] Param2 The second parameter to pass to 32bit code.
28 (EFIAPI
*FSP_FUNCTION
) (
34 Wrapper for a thunk to transition from long mode to compatibility mode to execute 32-bit code and then transit back to
37 @param[in] Function The 32bit code entry to be executed.
38 @param[in] Param1 The first parameter to pass to 32bit code.
39 @param[in] Param2 The second parameter to pass to 32bit code.
50 FSP_FUNCTION EntryFunc
;
53 EntryFunc
= (FSP_FUNCTION
) (UINTN
) (Function
);
54 Status
= EntryFunc ((VOID
*)(UINTN
)Param1
, (VOID
*)(UINTN
)Param2
);