]>
Commit | Line | Data |
---|---|---|
e386b444 | 1 | /** @file\r |
2 | Entry point to the DXE Core.\r | |
3 | \r | |
4 | Copyright (c) 2006, Intel Corporation<BR>\r | |
5 | All rights reserved. This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | //\r | |
c7d265a9 | 16 | // The package level header files this module uses\r |
e386b444 | 17 | //\r |
c7d265a9 | 18 | #include <PiDxe.h>\r |
19 | //\r | |
20 | // The protocols, PPI and GUID defintions for this module\r | |
21 | //\r | |
22 | //\r | |
23 | // The Library classes this module consumes\r | |
24 | //\r | |
25 | #include <Library/DxeCoreEntryPoint.h>\r | |
26 | #include <Library/DebugLib.h>\r | |
27 | #include <Library/BaseLib.h>\r | |
e386b444 | 28 | \r |
29 | //\r | |
30 | // Cache copy of HobList pointer. \r | |
31 | // \r | |
32 | VOID *gHobList = NULL;\r | |
33 | \r | |
34 | /**\r | |
35 | Enrty point to DXE core.\r | |
36 | \r | |
37 | @param HobStart Pointer of HobList.\r | |
38 | \r | |
39 | **/\r | |
40 | VOID\r | |
41 | EFIAPI\r | |
42 | _ModuleEntryPoint (\r | |
43 | IN VOID *HobStart\r | |
44 | )\r | |
45 | {\r | |
46 | //\r | |
47 | // Cache a pointer to the HobList\r | |
48 | //\r | |
49 | gHobList = HobStart;\r | |
50 | \r | |
51 | //\r | |
52 | // Call the DXE Core entry point\r | |
53 | //\r | |
54 | ProcessModuleEntryPointList (HobStart);\r | |
55 | \r | |
56 | //\r | |
57 | // Should never return\r | |
58 | //\r | |
59 | ASSERT(FALSE);\r | |
60 | CpuDeadLoop ();\r | |
61 | }\r | |
62 | \r | |
63 | \r | |
64 | /**\r | |
65 | Wrapper of enrty point to DXE CORE.\r | |
66 | \r | |
67 | @param HobStart Pointer of HobList.\r | |
68 | \r | |
69 | **/\r | |
70 | VOID\r | |
71 | EFIAPI\r | |
72 | EfiMain (\r | |
73 | IN VOID *HobStart\r | |
74 | )\r | |
75 | {\r | |
76 | _ModuleEntryPoint (HobStart);\r | |
77 | }\r |