1. Sync the latest network stack. Add NetLibCreateIPv4DPathNode () in netlib library.
[mirror_edk2.git] / MdeModulePkg / Core / Pei / Ipf / Stack.c
1 /** @file
2 PeiSwitchStacks() function for PEI dispatcher.
3
4 Copyright (c) 2006 - 2007, Intel Corporation<BR>
5 All rights reserved. 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
9
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.
12
13 Module Name: String.c
14
15 **/
16
17 #include <PeiMain.h>
18
19 /**
20 Transfers control to a function starting with a new stack.
21
22 Transfers control to the function specified by EntryPoint using the new stack
23 specified by NewStack and passing in the parameters specified by Context1 and
24 Context2. Context1 and Context2 are optional and may be NULL. The function
25 EntryPoint must never return.
26
27 If EntryPoint is NULL, then ASSERT().
28 If NewStack is NULL, then ASSERT().
29
30 @param EntryPoint A pointer to function to call with the new stack.
31 @param Context1 A pointer to the context to pass into the EntryPoint
32 function.
33 @param Context2 A pointer to the context to pass into the EntryPoint
34 function.
35 @param NewStack A pointer to the new stack to use for the EntryPoint
36 function.
37 @param NewBsp A pointer to the new BSP for the EntryPoint on IPF. It's
38 Reserved on other architectures.
39
40 **/
41 VOID
42 EFIAPI
43 PeiSwitchStacks (
44 IN SWITCH_STACK_ENTRY_POINT EntryPoint,
45 IN VOID *Context1, OPTIONAL
46 IN VOID *Context2, OPTIONAL
47 IN VOID *NewStack,
48 IN VOID *NewBsp
49 )
50 {
51 SwitchStack (
52 EntryPoint,
53 Context1,
54 Context2,
55 NewStack,
56 NewBsp
57 );
58 }