it was root caused to be Spec issue instead of code issue. It should be Action inste...
[mirror_edk2.git] / MdePkg / Library / DxeCoreEntryPoint / DxeCoreEntryPoint.c
CommitLineData
e386b444 1/** @file\r
2 Entry point to the DXE Core.\r
3\r
4Copyright (c) 2006, Intel Corporation<BR>\r
5All rights reserved. This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT 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
26VOID *gHobList = NULL;\r
27\r
28/**\r
518db1d9 29 The entry point of PE/COFF Image for the DXE Core. \r
30\r
31 This function is the entry point for the DXE Core. This function is required\r
32 to call ProcessModuleEntryPointList() and ProcessModuleEntryPoint() is never\r
33 expected to return. The DXE Core is responsible for calling ProcessLibraryConstructorList()\r
34 as soon as the EFI System Table and the image handle for the DXE Core itself have\r
35 been established.\r
36 If ProcessModuleEntryPointList() returns, then ASSERT() and halt the system.\r
37\r
38 @param HobStart Pointer to the beginning of the HOB List passed in from the PEI Phase. \r
e386b444 39\r
40**/\r
41VOID\r
42EFIAPI\r
43_ModuleEntryPoint (\r
44 IN VOID *HobStart\r
45 )\r
46{\r
47 //\r
48 // Cache a pointer to the HobList\r
49 //\r
50 gHobList = HobStart;\r
51\r
52 //\r
53 // Call the DXE Core entry point\r
54 //\r
55 ProcessModuleEntryPointList (HobStart);\r
56\r
57 //\r
58 // Should never return\r
59 //\r
60 ASSERT(FALSE);\r
61 CpuDeadLoop ();\r
62}\r
63\r
64\r
65/**\r
518db1d9 66 Required by the EBC compiler and identical in functionality to _ModuleEntryPoint().\r
67\r
68 This function is required to call _ModuleEntryPoint() passing in HobStart.\r
e386b444 69\r
518db1d9 70 @param HobStart Pointer to the beginning of the HOB List passed in from the PEI Phase. \r
e386b444 71\r
72**/\r
73VOID\r
74EFIAPI\r
75EfiMain (\r
76 IN VOID *HobStart\r
77 )\r
78{\r
79 _ModuleEntryPoint (HobStart);\r
80}\r