Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • dependabot/pip/edk2-pytool-library-approx-eq-0.22.6
  • dependabot/pip/edk2-pytool-extensions-approx-eq-0.28.5
  • dependabot/pip/edk2-pytool-extensions-approx-eq-0.28.4
  • dependabot/pip/edk2-pytool-extensions-approx-eq-0.28.3
  • dependabot/pip/lcov-cobertura-2.1.1
  • dependabot/pip/edk2-pytool-extensions-approx-eq-0.28.2
  • dependabot/pip/edk2-pytool-library-approx-eq-0.22.5
  • dependabot/pip/edk2-pytool-extensions-approx-eq-0.28.1
  • dependabot/pip/edk2-pytool-library-approx-eq-0.22.4
  • dependabot/pip/edk2-pytool-library-approx-eq-0.22.3
  • dependabot/pip/regex-2024.11.6
  • dependabot/pip/edk2-pytool-library-approx-eq-0.22.2
  • dependabot/pip/edk2-pytool-extensions-approx-eq-0.28.0
  • stable/202408
  • dependabot/pip/edk2-pytool-library-approx-eq-0.22.0
  • dependabot/pip/edk2-pytool-library-approx-eq-0.21.12
  • dependabot/pip/regex-2024.9.11
  • dependabot/pip/edk2-pytool-library-approx-eq-0.21.11
  • security-advisory/cve-2024-38796/advisory
  • edk2-stable202502
  • edk2-stable202411
  • edk2-stable202408.01
  • edk2-stable202408
  • edk2-stable202405
  • edk2-stable202402
  • edk2-stable202311
  • edk2-stable202308
  • edk2-stable202305
  • edk2-stable202302
  • edk2-stable202211
  • edk2-stable202208
  • edk2-stable202205
  • edk2-stable202205-rc1
  • edk2-stable202202
  • edk2-stable202202-rc1
  • edk2-stable202111
  • edk2-stable202111-rc1
  • edk2-stable202108
  • edk2-stable202108-rc1
40 results

ArmGicV2Lib.c

  • Sami Mujawar's avatar
    08a08129
    ArmPkg: Typecast IntID to UINT32 in ArmGicV2EndOfInterrupt · 08a08129
    Sami Mujawar authored
    
    The EIOR register of the Gic CPU interface is a 32 bit register.
    However, the HARDWARE_INTERRUPT_SOURCE used to represent the interrupt
    source (Interrupt ID) is typedefed as UINTN, see
    EmbeddedPkg\Include\Protocol\HardwareInterrupt.h
    
    Therfore, typecast the interrupt ID (Source) value to UINT32 before
    setting the EOIR register. Also, add an assert to check that the value
    does not exceed 32 bits.
    
    Signed-off-by: default avatarSami Mujawar <sami.mujawar@arm.com>
    08a08129
    History
    ArmPkg: Typecast IntID to UINT32 in ArmGicV2EndOfInterrupt
    Sami Mujawar authored
    
    The EIOR register of the Gic CPU interface is a 32 bit register.
    However, the HARDWARE_INTERRUPT_SOURCE used to represent the interrupt
    source (Interrupt ID) is typedefed as UINTN, see
    EmbeddedPkg\Include\Protocol\HardwareInterrupt.h
    
    Therfore, typecast the interrupt ID (Source) value to UINT32 before
    setting the EOIR register. Also, add an assert to check that the value
    does not exceed 32 bits.
    
    Signed-off-by: default avatarSami Mujawar <sami.mujawar@arm.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ArmGicV2Lib.c 670 B