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