]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Universal/StatusCode/Dxe/EntryPoint.c
Convert NT32 to use PCD settings for UEFI Timeout and language variables as a POC...
[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
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14
15 **/
16
17 #include "DxeStatusCode.h"
18
19 //
20 // Event for Exit Boot Services Callback
21 //
22 STATIC EFI_EVENT mExitBootServicesEvent = NULL;
23
24 /**
25 The user Entry Point for module DxeStatusCode. The user code starts with this function.
26
27 @param[in] ImageHandle The firmware allocated handle for the EFI image.
28 @param[in] SystemTable A pointer to the EFI System Table.
29
30 @retval EFI_SUCCESS The entry point is executed successfully.
31 @retval other Some error occurs when executing this entry point.
32
33 **/
34 EFI_STATUS
35 EFIAPI
36 InitializeDxeStatusCode(
37 IN EFI_HANDLE ImageHandle,
38 IN EFI_SYSTEM_TABLE *SystemTable
39 )
40 {
41 EFI_STATUS Status;
42
43 Status = gBS->CreateEvent (
44 EVT_SIGNAL_EXIT_BOOT_SERVICES,
45 TPL_NOTIFY,
46 VirtualAddressChangeCallBack,
47 NULL,
48 &mExitBootServicesEvent
49 );
50 ASSERT_EFI_ERROR (Status);
51
52 //
53 // Call the original Entry Point
54 //
55 Status = DxeStatusCodeDriverEntry (ImageHandle, SystemTable);
56
57 return Status;
58 }