]> git.proxmox.com Git - mirror_edk2.git/blame - EdkModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c
1. Added Non-existing.c in BaseLib to assert no invocations of SwitchStack() on IPF.
[mirror_edk2.git] / EdkModulePkg / Core / DxeIplPeim / Ia32 / DxeLoadFunc.c
CommitLineData
878ddf1f 1/*++\r
2\r
eeb1cd5a 3Copyright (c) 2006, Intel Corporation\r
4All rights reserved. This program and the accompanying materials\r
5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
878ddf1f 11\r
12Module Name:\r
13\r
14 DxeLoadFunc.c\r
15\r
16Abstract:\r
17\r
18 Ia32-specifc functionality for DxeLoad.\r
19\r
20--*/\r
21\r
22#include <DxeIpl.h>\r
23\r
24EFI_STATUS\r
25CreateArchSpecificHobs (\r
26 OUT EFI_PHYSICAL_ADDRESS *BspStore\r
27 )\r
28/*++\r
29\r
30Routine Description:\r
31\r
32 Creates architecture-specific HOBs.\r
33\r
34 Note: New parameters should NOT be added for any HOBs that are added to this\r
35 function. BspStore is a special case because it is required for the\r
36 call to SwitchStacks() in DxeLoad().\r
37\r
38Arguments:\r
39\r
40 BspStore - The address of the BSP Store for those architectures that need\r
41 it. Otherwise 0.\r
42\r
43Returns:\r
44\r
45 EFI_SUCCESS - The HOBs were created successfully.\r
46\r
47--*/\r
48{\r
49 *BspStore = 0;\r
50 return EFI_SUCCESS;\r
51}\r
eeb1cd5a 52\r
53/**\r
54 Transfers control to a function starting with a new stack.\r
55\r
56 Transfers control to the function specified by EntryPoint using the new stack\r
57 specified by NewStack and passing in the parameters specified by Context1 and\r
58 Context2. Context1 and Context2 are optional and may be NULL. The function\r
59 EntryPoint must never return.\r
60\r
61 If EntryPoint is NULL, then ASSERT().\r
62 If NewStack is NULL, then ASSERT().\r
63\r
64 @param EntryPoint A pointer to function to call with the new stack.\r
65 @param Context1 A pointer to the context to pass into the EntryPoint\r
66 function.\r
67 @param Context2 A pointer to the context to pass into the EntryPoint\r
68 function.\r
69 @param NewStack A pointer to the new stack to use for the EntryPoint\r
70 function.\r
71 @param NewBsp A pointer to the new BSP for the EntryPoint on IPF. It's\r
72 Reserved on other architectures.\r
73\r
74**/\r
75VOID\r
76EFIAPI\r
77SwitchIplStacks (\r
78 IN SWITCH_STACK_ENTRY_POINT EntryPoint,\r
79 IN VOID *Context1, OPTIONAL\r
80 IN VOID *Context2, OPTIONAL\r
81 IN VOID *NewStack,\r
82 IN VOID *NewBsp\r
83 )\r
84{\r
85 SwitchStack (EntryPoint, Context1, Context2, NewStack);\r
86}\r