]> git.proxmox.com Git - mirror_edk2.git/commitdiff
EmbeddedPkg/RealTimeClockRuntimeDxe: depend on gEfiVariableArchProtocolGuid
authorNhi Pham <nhi@os.amperecomputing.com>
Fri, 8 Jan 2021 13:41:15 +0000 (20:41 +0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sun, 10 Jan 2021 01:18:44 +0000 (01:18 +0000)
The EfiGetVariable() is used in the entry of this module. So, the
variable services are required to be ready before they are used. This
patch adds the arch protocol gEfiVariableArchProtocolGuid to dependency
expression to guarantee that this module will be started once the
variable protocol is available.

Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf

index fec53c79d335f59dc63dc78dd6909ec4fda74665..0a4cd6dae703661b46f5c06accb1525f8875db96 100644 (file)
@@ -38,5 +38,5 @@
   gEfiRealTimeClockArchProtocolGuid\r
 \r
 [Depex]\r
-  TRUE\r
+  gEfiVariableArchProtocolGuid\r
 \r