]> git.proxmox.com Git - mirror_edk2.git/blame - EdkModulePkg/Universal/Capsule/RuntimeDxe/Capsule.c
1. Merger Tracker 8448: PciHostBridgeEnumerator() error checking could lead to memory...
[mirror_edk2.git] / EdkModulePkg / Universal / Capsule / RuntimeDxe / Capsule.c
CommitLineData
045f4521 1/*++\r
2\r
07a171a4 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
045f4521 11\r
12Module Name:\r
13\r
14 Capsule.c\r
15\r
16Abstract:\r
17\r
18 Capsule Runtime Service Initialization\r
19\r
20--*/\r
21\r
22#include "CapsuleService.h"\r
23\r
24\r
25EFI_STATUS\r
26EFIAPI\r
27CapsuleServiceInitialize (\r
28 IN EFI_HANDLE ImageHandle,\r
29 IN EFI_SYSTEM_TABLE *SystemTable\r
30 )\r
31/*++\r
32\r
33Routine Description:\r
34\r
35 This code is capsule runtime service initialization.\r
07a171a4 36\r
045f4521 37Arguments:\r
38\r
39 ImageHandle The image handle\r
40 SystemTable The system table.\r
41\r
42Returns:\r
43\r
44 EFI STATUS\r
45\r
46--*/\r
47{\r
48 EFI_STATUS Status;\r
49 EFI_HANDLE NewHandle;\r
50\r
07a171a4 51 EFI_DEADLOOP ();\r
045f4521 52 SystemTable->RuntimeServices->UpdateCapsule = UpdateCapsule;\r
53 SystemTable->RuntimeServices->QueryCapsuleCapabilities = QueryCapsuleCapabilities;\r
54\r
55 //\r
56 // Now install the Capsule Architectural Protocol on a new handle\r
57 //\r
58 NewHandle = NULL;\r
59\r
60 Status = gBS->InstallMultipleProtocolInterfaces (\r
61 &NewHandle,\r
62 &gEfiCapsuleArchProtocolGuid,\r
63 NULL,\r
64 NULL\r
65 );\r
66 ASSERT_EFI_ERROR (Status);\r
67\r
68 return EFI_SUCCESS;\r
69}\r