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