]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.c
Import some Pei and Dxe related instances for MdePkg.
[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 common header file for this module.
17 //
18 #include "CommonHeader.h"
19
20 //
21 // Cache copy of HobList pointer.
22 //
23 VOID *gHobList = NULL;
24
25 /**
26 Enrty point to DXE core.
27
28 @param HobStart Pointer of HobList.
29
30 **/
31 VOID
32 EFIAPI
33 _ModuleEntryPoint (
34 IN VOID *HobStart
35 )
36 {
37 //
38 // Cache a pointer to the HobList
39 //
40 gHobList = HobStart;
41
42 //
43 // Call the DXE Core entry point
44 //
45 ProcessModuleEntryPointList (HobStart);
46
47 //
48 // Should never return
49 //
50 ASSERT(FALSE);
51 CpuDeadLoop ();
52 }
53
54
55 /**
56 Wrapper of enrty point to DXE CORE.
57
58 @param HobStart Pointer of HobList.
59
60 **/
61 VOID
62 EFIAPI
63 EfiMain (
64 IN VOID *HobStart
65 )
66 {
67 _ModuleEntryPoint (HobStart);
68 }