]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.c
remove some comments introduced by tools.
[mirror_edk2.git] / MdePkg / Library / DxeCoreEntryPoint / DxeCoreEntryPoint.c
1 /** @file
2 Entry point to the DXE Core.
3
4 Copyright (c) 2006, Intel Corporation<BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15
16 #include <PiDxe.h>
17
18
19 #include <Library/DxeCoreEntryPoint.h>
20 #include <Library/DebugLib.h>
21 #include <Library/BaseLib.h>
22
23 //
24 // Cache copy of HobList pointer.
25 //
26 VOID *gHobList = NULL;
27
28 /**
29 Enrty point to DXE core.
30
31 @param HobStart Pointer of HobList.
32
33 **/
34 VOID
35 EFIAPI
36 _ModuleEntryPoint (
37 IN VOID *HobStart
38 )
39 {
40 //
41 // Cache a pointer to the HobList
42 //
43 gHobList = HobStart;
44
45 //
46 // Call the DXE Core entry point
47 //
48 ProcessModuleEntryPointList (HobStart);
49
50 //
51 // Should never return
52 //
53 ASSERT(FALSE);
54 CpuDeadLoop ();
55 }
56
57
58 /**
59 Wrapper of enrty point to DXE CORE.
60
61 @param HobStart Pointer of HobList.
62
63 **/
64 VOID
65 EFIAPI
66 EfiMain (
67 IN VOID *HobStart
68 )
69 {
70 _ModuleEntryPoint (HobStart);
71 }