]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/ArmGicDxe: annotate protocol usage in "ArmGicDxe.inf"
authorLaszlo Ersek <lersek@redhat.com>
Wed, 11 Apr 2018 16:40:49 +0000 (18:40 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 12 Apr 2018 19:24:26 +0000 (21:24 +0200)
"ArmGicDxe.inf" currently does not document how the protocols in the
[Protocols] section are used. Such comments help us analyze behavior, so
let's add them now.

- gHardwareInterruptProtocolGuid and gHardwareInterrupt2ProtocolGuid are
  always produced on the InterruptDxeInitialize() -> (GicV2DxeInitialize()
  | GicV3DxeInitialize()) -> InstallAndRegisterInterruptService() call
  path.

- gEfiCpuArchProtocolGuid is consumed in the CpuArchEventProtocolNotify()
  protocol notify callback. (Technically this is "conditional"; however
  the firmware cannot work without architectural protocols, so we can call
  it unconditional.)

While at it, drop the gArmGicDxeFileGuid comment from FILE_GUID; we're
going to make that GUID uninteresting soon.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Steve Capper <steve.capper@linaro.org>
Cc: Supreeth Venkatesh <Supreeth.Venkatesh@arm.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Steve Capper <steve.capper@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPkg/Drivers/ArmGic/ArmGicDxe.inf

index 24b02ef30e8317f3664c84e0251f524f51521943..9c85b1e069dccc230ae386b1ed1ecf808e52056b 100644 (file)
@@ -16,7 +16,7 @@
 [Defines]\r
   INF_VERSION                    = 0x00010005\r
   BASE_NAME                      = ArmGicDxe\r
-  FILE_GUID                      = DE371F7C-DEC4-4D21-ADF1-593ABCC15882 # gArmGicDxeFileGuid\r
+  FILE_GUID                      = DE371F7C-DEC4-4D21-ADF1-593ABCC15882\r
   MODULE_TYPE                    = DXE_DRIVER\r
   VERSION_STRING                 = 1.0\r
 \r
@@ -48,9 +48,9 @@
   UefiLib\r
 \r
 [Protocols]\r
-  gHardwareInterruptProtocolGuid\r
-  gHardwareInterrupt2ProtocolGuid\r
-  gEfiCpuArchProtocolGuid\r
+  gHardwareInterruptProtocolGuid  ## PRODUCES\r
+  gHardwareInterrupt2ProtocolGuid ## PRODUCES\r
+  gEfiCpuArchProtocolGuid         ## CONSUMES ## NOTIFY\r
 \r
 [Pcd.common]\r
   gArmTokenSpaceGuid.PcdGicDistributorBase\r