]>
Commit | Line | Data |
---|---|---|
878ddf1f | 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 | |
16 | // Cache copy of HobList pointer. \r | |
17 | // \r | |
18 | VOID *gHobList = NULL;\r | |
19 | \r | |
20 | /**\r | |
21 | Enrty point to DXE core.\r | |
22 | \r | |
23 | @param HobStart Pointer of HobList.\r | |
24 | \r | |
25 | **/\r | |
26 | VOID\r | |
27 | EFIAPI\r | |
28 | _ModuleEntryPoint (\r | |
29 | IN VOID *HobStart\r | |
30 | )\r | |
31 | {\r | |
32 | //\r | |
33 | // Cache a pointer to the HobList\r | |
34 | //\r | |
35 | gHobList = HobStart;\r | |
36 | \r | |
37 | //\r | |
38 | // Call the DXE Core entry point\r | |
39 | //\r | |
40 | ProcessModuleEntryPointList (HobStart);\r | |
41 | \r | |
42 | //\r | |
43 | // Should never return\r | |
44 | //\r | |
45 | ASSERT(FALSE);\r | |
46 | CpuDeadLoop ();\r | |
47 | }\r | |
48 | \r | |
49 | \r | |
50 | /**\r | |
51 | Wrapper of enrty point to DXE CORE.\r | |
52 | \r | |
53 | @param HobStart Pointer of HobList.\r | |
54 | \r | |
55 | **/\r | |
56 | VOID\r | |
57 | EFIAPI\r | |
58 | EfiMain (\r | |
59 | IN VOID *HobStart\r | |
60 | )\r | |
61 | {\r | |
62 | _ModuleEntryPoint (HobStart);\r | |
63 | }\r |