]> git.proxmox.com Git - mirror_edk2.git/blame - EdkModulePkg/Universal/StatusCode/RuntimeDxe/x64/x64StatusCode.c
1. Updated function headers in all assembly files.
[mirror_edk2.git] / EdkModulePkg / Universal / StatusCode / RuntimeDxe / x64 / x64StatusCode.c
CommitLineData
878ddf1f 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13 \r
14 x64StatusCode.c\r
15\r
16Abstract:\r
17\r
18 Installs the ReportStatusCode runtime service.\r
19\r
20--*/\r
21\r
22#include "StatusCode.h"\r
23\r
24//\r
25//\r
26//\r
27EFI_HANDLE gStatusCodeHandle = NULL;\r
28\r
29const EFI_STATUS_CODE_PROTOCOL gStatusCodeInstance = {\r
30 StatusCodeReportStatusCode\r
31};\r
32\r
33//\r
34// Define the driver entry point\r
35//\r
36EFI_STATUS\r
37EFIAPI\r
38InstallStatusCode (\r
39 IN EFI_HANDLE ImageHandle,\r
40 IN EFI_SYSTEM_TABLE *SystemTable\r
41 )\r
42/*++\r
43\r
44Routine Description:\r
45\r
46 Install the ReportStatusCode runtime service.\r
47\r
48Arguments:\r
49\r
50 ImageHandle Image handle of the loaded driver\r
51 SystemTable Pointer to the System Table\r
52\r
53Returns:\r
54\r
55 EFI_SUCCESS The function always returns success.\r
56\r
57--*/\r
58{\r
59 EFI_STATUS Status;\r
60\r
61 //\r
62 // Initialize RT status code\r
63 //\r
64 InitializeStatusCode (ImageHandle, SystemTable);\r
65\r
66 Status = gBS->InstallMultipleProtocolInterfaces (\r
67 &gStatusCodeHandle,\r
68 &gEfiStatusCodeRuntimeProtocolGuid,\r
69 &gStatusCodeInstance,\r
70 NULL\r
71 );\r
72 ASSERT_EFI_ERROR (Status);\r
73\r
74 return Status;\r
75}\r