]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFspPkg/Include/Library/FspSwitchStackLib.h
IntelFspPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / IntelFspPkg / Include / Library / FspSwitchStackLib.h
1 /** @file
2
3 Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
4 SPDX-License-Identifier: BSD-2-Clause-Patent
5
6 **/
7
8 #ifndef _FSP_SWITCH_STACK_LIB_H_
9 #define _FSP_SWITCH_STACK_LIB_H_
10
11 /**
12
13 This function will switch the current stack to the previous saved stack.
14 Before calling the previous stack has to be set in FSP_GLOBAL_DATA.CoreStack.
15 EIP
16 FLAGS 16 bit FLAGS 16 bit
17 EDI
18 ESI
19 EBP
20 ESP
21 EBX
22 EDX
23 ECX
24 EAX
25 DWORD IDT base1
26 StackPointer: DWORD IDT base2
27
28 @return ReturnKey After switching to the saved stack,
29 this value will be saved in eax before returning.
30
31
32 **/
33 UINT32
34 EFIAPI
35 Pei2LoaderSwitchStack (
36 VOID
37 );
38
39 #endif