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