]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.c
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Library / DxeCoreEntryPoint / DxeCoreEntryPoint.c
... / ...
CommitLineData
1/** @file\r
2 Entry point to the DXE Core.\r
3\r
4Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
5SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
7**/\r
8\r
9#include <PiDxe.h>\r
10\r
11#include <Library/DxeCoreEntryPoint.h>\r
12#include <Library/DebugLib.h>\r
13#include <Library/BaseLib.h>\r
14\r
15//\r
16// Cache copy of HobList pointer.\r
17//\r
18VOID *gHobList = NULL;\r
19\r
20/**\r
21 The entry point of PE/COFF Image for the DXE Core.\r
22\r
23 This function is the entry point for the DXE Core. This function is required to call\r
24 ProcessModuleEntryPointList() and ProcessModuleEntryPointList() is never expected to return.\r
25 The DXE Core is responsible for calling ProcessLibraryConstructorList() as soon as the EFI\r
26 System Table and the image handle for the DXE Core itself have been established.\r
27 If ProcessModuleEntryPointList() returns, then ASSERT() and halt the system.\r
28\r
29 @param HobStart The pointer to the beginning of the HOB List passed in from the PEI Phase.\r
30\r
31**/\r
32VOID\r
33EFIAPI\r
34_ModuleEntryPoint (\r
35 IN VOID *HobStart\r
36 )\r
37{\r
38 //\r
39 // Cache a pointer to the HobList\r
40 //\r
41 gHobList = HobStart;\r
42\r
43 //\r
44 // Call the DXE Core entry point\r
45 //\r
46 ProcessModuleEntryPointList (HobStart);\r
47\r
48 //\r
49 // Should never return\r
50 //\r
51 ASSERT (FALSE);\r
52 CpuDeadLoop ();\r
53}\r
54\r
55/**\r
56 Required by the EBC compiler and identical in functionality to _ModuleEntryPoint().\r
57\r
58 This function is required to call _ModuleEntryPoint() passing in HobStart.\r
59\r
60 @param HobStart The pointer to the beginning of the HOB List passed in from the PEI Phase.\r
61\r
62**/\r
63VOID\r
64EFIAPI\r
65EfiMain (\r
66 IN VOID *HobStart\r
67 )\r
68{\r
69 _ModuleEntryPoint (HobStart);\r
70}\r