]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.c
Checked in part of MDE library instances following PI and UEFI. It includes:
[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 // The package level header files this module uses
17 //
18 #include <PiDxe.h>
19 //
20 // The protocols, PPI and GUID defintions for this module
21 //
22 //
23 // The Library classes this module consumes
24 //
25 #include <Library/DxeCoreEntryPoint.h>
26 #include <Library/DebugLib.h>
27 #include <Library/BaseLib.h>
28
29 //
30 // Cache copy of HobList pointer.
31 //
32 VOID *gHobList = NULL;
33
34 /**
35 Enrty point to DXE core.
36
37 @param HobStart Pointer of HobList.
38
39 **/
40 VOID
41 EFIAPI
42 _ModuleEntryPoint (
43 IN VOID *HobStart
44 )
45 {
46 //
47 // Cache a pointer to the HobList
48 //
49 gHobList = HobStart;
50
51 //
52 // Call the DXE Core entry point
53 //
54 ProcessModuleEntryPointList (HobStart);
55
56 //
57 // Should never return
58 //
59 ASSERT(FALSE);
60 CpuDeadLoop ();
61 }
62
63
64 /**
65 Wrapper of enrty point to DXE CORE.
66
67 @param HobStart Pointer of HobList.
68
69 **/
70 VOID
71 EFIAPI
72 EfiMain (
73 IN VOID *HobStart
74 )
75 {
76 _ModuleEntryPoint (HobStart);
77 }