]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.c
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Library / DxeCoreEntryPoint / DxeCoreEntryPoint.c
CommitLineData
e386b444 1/** @file\r
2 Entry point to the DXE Core.\r
3\r
9095d37b 4Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
9344f092 5SPDX-License-Identifier: BSD-2-Clause-Patent\r
e386b444 6\r
7**/\r
8\r
c7d265a9 9#include <PiDxe.h>\r
c892d846 10\r
c7d265a9 11#include <Library/DxeCoreEntryPoint.h>\r
12#include <Library/DebugLib.h>\r
13#include <Library/BaseLib.h>\r
e386b444 14\r
15//\r
9095d37b
LG
16// Cache copy of HobList pointer.\r
17//\r
2f88bd3a 18VOID *gHobList = NULL;\r
e386b444 19\r
20/**\r
9095d37b 21 The entry point of PE/COFF Image for the DXE Core.\r
518db1d9 22\r
47c6e0f7 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
518db1d9 27 If ProcessModuleEntryPointList() returns, then ASSERT() and halt the system.\r
28\r
9095d37b 29 @param HobStart The pointer to the beginning of the HOB List passed in from the PEI Phase.\r
e386b444 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
2f88bd3a 51 ASSERT (FALSE);\r
e386b444 52 CpuDeadLoop ();\r
53}\r
54\r
e386b444 55/**\r
518db1d9 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
e386b444 59\r
9095d37b 60 @param HobStart The pointer to the beginning of the HOB List passed in from the PEI Phase.\r
e386b444 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