]> xenbits.xensource.com Git - ovmf.git/commitdiff
ArmVirtPkg: Fix depex in kvmtool guest Rtc library
authorSami Mujawar <sami.mujawar@arm.com>
Tue, 1 Mar 2022 17:29:51 +0000 (17:29 +0000)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 29 Mar 2023 13:48:54 +0000 (13:48 +0000)
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>
ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.inf

index f0a7c19ca5f4b5a8eeab08af64175ae6f3526b12..c10a6737a0736b11a8f45b661f8ac38948cb40b0 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 #  FDT client library for motorola,mc146818 RTC driver\r
 #\r
-#  Copyright (c) 2020, ARM Limited. All rights reserved.<BR>\r
+#  Copyright (c) 2020 - 2023, ARM Limited. All rights reserved.<BR>\r
 #\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
@@ -40,4 +40,4 @@
   gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister64\r
 \r
 [Depex]\r
-  gFdtClientProtocolGuid\r
+  gFdtClientProtocolGuid AND gEfiCpuArchProtocolGuid\r