-#/** @file\r
-# \r
-# CapsuleRuntime module provides capsule runtime services\r
+## @file\r
+# Capsule Runtime Driver produces two UEFI capsule runtime services: (UpdateCapsule, QueryCapsuleCapabilities).\r
+#\r
+# It installs the Capsule Architectural Protocol defined in PI1.0a to signify \r
+# the capsule runtime services are ready.\r
# \r
-# Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
-# All rights reserved. This program and the accompanying materials\r
+# Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
+# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
# http://opensource.org/licenses/bsd-license.php\r
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
# \r
-#**/\r
+##\r
\r
[Defines]\r
INF_VERSION = 0x00010005\r
BASE_NAME = CapsuleRuntimeDxe\r
+ MODULE_UNI_FILE = CapsuleRuntimeDxe.uni\r
FILE_GUID = 42857F0A-13F2-4B21-8A23-53D3F714B840\r
MODULE_TYPE = DXE_RUNTIME_DRIVER\r
VERSION_STRING = 1.0\r
- EDK_RELEASE_VERSION = 0x00020000\r
- EFI_SPECIFICATION_VERSION = 0x00020000\r
-\r
ENTRY_POINT = CapsuleServiceInitialize\r
\r
#\r
# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
#\r
\r
-[Sources.common]\r
- CapsuleService.h\r
+[Sources]\r
CapsuleService.c\r
\r
+[Sources.Ia32, Sources.IPF, Sources.EBC, Sources.ARM, Sources.AARCH64]\r
+ SaveLongModeContext.c\r
+\r
+[Sources.X64]\r
+ X64/SaveLongModeContext.c\r
+\r
[Packages]\r
MdePkg/MdePkg.dec\r
MdeModulePkg/MdeModulePkg.dec\r
UefiBootServicesTableLib\r
PcdLib\r
DebugLib\r
- UefiRuntimeLib\r
+ UefiRuntimeServicesTableLib\r
UefiDriverEntryPoint\r
CapsuleLib\r
+ UefiRuntimeLib\r
+ BaseLib\r
+ PrintLib\r
+ BaseMemoryLib\r
+\r
+[LibraryClasses.X64]\r
+ UefiLib\r
+ BaseMemoryLib\r
\r
[Guids]\r
- gEfiCapsuleVendorGuid # SOMETIMES_CONSUMED\r
+ ## SOMETIMES_PRODUCES ## Variable:L"CapsuleUpdateData" # (Process across reset capsule image) for capsule updated data\r
+ ## SOMETIMES_PRODUCES ## Variable:L"CapsuleLongModeBuffer" # The long mode buffer used by IA32 Capsule PEIM to call X64 CapsuleCoalesce code to handle >4GB capsule blocks\r
+ gEfiCapsuleVendorGuid\r
+ gEfiFmpCapsuleGuid ## SOMETIMES_CONSUMES ## GUID # FMP capsule GUID\r
\r
[Protocols]\r
- gEfiCapsuleArchProtocolGuid # PROTOCOL ALWAYS_CONSUMED\r
+ gEfiCapsuleArchProtocolGuid ## PRODUCES\r
+\r
+[Protocols.X64]\r
+ ## UNDEFINED ## NOTIFY\r
+ ## SOMETIMES_CONSUMES\r
+ gEdkiiVariableLockProtocolGuid\r
+\r
+[FeaturePcd]\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset ## CONSUMES\r
\r
-[FeaturePcd.common]\r
- gEfiMdeModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleRest\r
+[FeaturePcd.X64]\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode ## CONSUMES\r
\r
-[FixedPcd.common]\r
- gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule\r
- gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizePopulateCapsule\r
+[Pcd]\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule ## SOMETIMES_CONSUMES\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizePopulateCapsule ## SOMETIMES_CONSUMES # Populate Image requires reset support.\r
+\r
+[Pcd.X64]\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdCapsulePeiLongModeStackSize ## SOMETIMES_CONSUMES\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable ## SOMETIMES_CONSUMES\r
\r
[Depex]\r
- gEfiVariableWriteArchProtocolGuid\r
+ gEfiVariableWriteArchProtocolGuid # Depends on variable write functionality to produce capsule data variable\r
+\r
+# [Hob.X64]\r
+# UNDEFINED ## SOMETIMES_CONSUMES # CPU\r
+\r
+[UserExtensions.TianoCore."ExtraFiles"]\r
+ CapsuleRuntimeDxeExtra.uni\r