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