]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Universal/StatusCode/Dxe/EntryPoint.c
Remove CommonHeader.h in StatusCodeDxe.
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / StatusCode / Dxe / EntryPoint.c
1 /**@file
2 Entry Point Source file.
3
4 This file contains the user entry point
5
6 Copyright (c) 2006, Intel Corporation.
7 All rights reserved. This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 **/
14
15 #include "DxeStatusCode.h"
16
17 //
18 // Event for Exit Boot Services Callback
19 //
20 STATIC EFI_EVENT mExitBootServicesEvent = NULL;
21
22 /**
23 The user Entry Point for module DxeStatusCode. The user code starts with this function.
24
25 @param[in] ImageHandle The firmware allocated handle for the EFI image.
26 @param[in] SystemTable A pointer to the EFI System Table.
27
28 @retval EFI_SUCCESS The entry point is executed successfully.
29 @retval other Some error occurs when executing this entry point.
30
31 **/
32 EFI_STATUS
33 EFIAPI
34 InitializeDxeStatusCode(
35 IN EFI_HANDLE ImageHandle,
36 IN EFI_SYSTEM_TABLE *SystemTable
37 )
38 {
39 EFI_STATUS Status;
40
41 Status = gBS->CreateEvent (
42 EVT_SIGNAL_EXIT_BOOT_SERVICES,
43 TPL_NOTIFY,
44 VirtualAddressChangeCallBack,
45 NULL,
46 &mExitBootServicesEvent
47 );
48 ASSERT_EFI_ERROR (Status);
49
50 //
51 // Call the original Entry Point
52 //
53 Status = DxeStatusCodeDriverEntry (ImageHandle, SystemTable);
54
55 return Status;
56 }