Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 42e083c60dd3515263ef24678b67c4feddb543f8
      
https://github.com/tianocore/edk2/commit/42e083c60dd3515263ef24678b67c4feddb543f8
  Author: Michael D Kinney <[email protected]>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcBlockIoPei.inf
    M MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcHci.c

  Log Message:
  -----------
  MdeModulePkg/EmmcBlockIoPei: Use UINTN for ADMA descriptor table indexing

In BuildAdmaDescTable(), Index and Entries were UINT64. Using a 64-bit
Index for array subscripting `Trb->AdmaDesc[Index]` generates 64-bit
multiplication on 32-bit architectures (IA32).

Change Index and Entries to UINTN so array indexing uses native integer
math, and add BaseLib to the module INF.

Signed-off-by: Michael D Kinney <[email protected]>


  Commit: d9934e9178e71779e27c2e62e1c63dc3747ca8c9
      
https://github.com/tianocore/edk2/commit/d9934e9178e71779e27c2e62e1c63dc3747ca8c9
  Author: Michael D Kinney <[email protected]>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c

  Log Message:
  -----------
  MdeModulePkg/SdMmcPciHcDxe: Use UINTN for ADMA descriptor table indexing

In BuildAdmaDescTable(), Index and Entries were UINT64. Using a 64-bit
Index for array subscripting `Trb->Adma32Desc[Index]`,
`Trb->Adma64V3Desc[Index]`, and `Trb->Adma64V4Desc[Index]` generates
64-bit multiplication on 32-bit architectures (IA32).

Change Index and Entries to UINTN so array indexing and table size
calculations use native integer math.

Signed-off-by: Michael D Kinney <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/4f9b239a60d5...d9934e9178e7

To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to