]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | /*++\r |
2 | \r | |
eeb1cd5a | 3 | Copyright (c) 2006, Intel Corporation\r |
4 | All rights reserved. This program and the accompanying materials\r | |
5 | are licensed and made available under the terms and conditions of the BSD License\r | |
6 | which accompanies this distribution. The full text of the license may be found at\r | |
7 | http://opensource.org/licenses/bsd-license.php\r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
878ddf1f | 11 | \r |
12 | Module Name:\r | |
13 | \r | |
14 | DxeLoadFunc.c\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | Ia32-specifc functionality for DxeLoad.\r | |
19 | \r | |
20 | --*/\r | |
21 | \r | |
22 | #include <DxeIpl.h>\r | |
23 | \r | |
24 | EFI_STATUS\r | |
25 | CreateArchSpecificHobs (\r | |
26 | OUT EFI_PHYSICAL_ADDRESS *BspStore\r | |
27 | )\r | |
28 | /*++\r | |
29 | \r | |
30 | Routine 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 | |
38 | Arguments:\r | |
39 | \r | |
40 | BspStore - The address of the BSP Store for those architectures that need\r | |
41 | it. Otherwise 0.\r | |
42 | \r | |
43 | Returns:\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 | |
75 | VOID\r | |
76 | EFIAPI\r | |
77 | SwitchIplStacks (\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 |