]>
Commit | Line | Data |
---|---|---|
1 | /*++\r | |
2 | \r | |
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 | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | IpfDxeLoad.c\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | Ipf-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 | EFI_STATUS Status;\r | |
50 | \r | |
51 | Status = EFI_SUCCESS; \r | |
52 | \r | |
53 | ASSERT (NULL != BspStore);\r | |
54 | \r | |
55 | //\r | |
56 | // Allocate 16KB for the BspStore\r | |
57 | //\r | |
58 | Status = PeiServicesAllocatePages (EfiBootServicesData, EFI_SIZE_TO_PAGES (BSP_STORE_SIZE), BspStore);\r | |
59 | if (EFI_ERROR (Status)) {\r | |
60 | return Status;\r | |
61 | }\r | |
62 | \r | |
63 | BuildBspStoreHob (\r | |
64 | *BspStore,\r | |
65 | BSP_STORE_SIZE,\r | |
66 | EfiBootServicesData\r | |
67 | );\r | |
68 | \r | |
69 | return EFI_SUCCESS;\r | |
70 | }\r |