summaryrefslogtreecommitdiffstats
path: root/ArmVirtPkg
diff options
context:
space:
mode:
authorSami Mujawar <sami.mujawar@arm.com>2022-03-01 17:29:51 +0000
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-03-29 13:48:54 +0000
commit6f415f8af48d0ba3e5d4719062a62cbfc3577227 (patch)
treeaec4d6b08a48343c4fb9db80b498147b18a117f7 /ArmVirtPkg
parent47b1d6116982c9e1e75c3f1bf9014fce7e2b0f9c (diff)
downloadedk2-6f415f8af48d0ba3e5d4719062a62cbfc3577227.tar.gz
edk2-6f415f8af48d0ba3e5d4719062a62cbfc3577227.tar.bz2
edk2-6f415f8af48d0ba3e5d4719062a62cbfc3577227.zip
ArmVirtPkg: Fix depex in kvmtool guest Rtc library
The Rtc library for the kvmtool guest firmware configures the RTC controller address range as runtime memory by calling the gDS->SetMemorySpaceAttributes(). The SetMemorySpaceAttributes() function has a dependency on the CPU Arch Protocol. If the CPU Arch Protocol is not installed the call to set the memory attributes fails with error code EFI_NOT_AVAILABLE_YET. Therefore, set the library dependency on the CPU Arch protocol. Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Pierre Gondois <pierre.gondois@arm.com> Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'ArmVirtPkg')
-rw-r--r--ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.inf4
1 files changed, 2 insertions, 2 deletions
diff --git a/ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.inf b/ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.inf
index f0a7c19ca5..c10a6737a0 100644
--- a/ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.inf
+++ b/ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.inf
@@ -1,7 +1,7 @@
## @file
# FDT client library for motorola,mc146818 RTC driver
#
-# Copyright (c) 2020, ARM Limited. All rights reserved.<BR>
+# Copyright (c) 2020 - 2023, ARM Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
@@ -40,4 +40,4 @@
gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister64
[Depex]
- gFdtClientProtocolGuid
+ gFdtClientProtocolGuid AND gEfiCpuArchProtocolGuid