Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: e9875b1e49fec34d0d5015d9591f6350a32db92f
https://github.com/tianocore/edk2/commit/e9875b1e49fec34d0d5015d9591f6350a32db92f
Author: Michael D Kinney <[email protected]>
Date: 2026-09-29 (Tue, 29 Sep 2026)
Changed paths:
M MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPei.h
M MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPei.inf
M MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiPassThru.c
Log Message:
-----------
MdeModulePkg/NvmExpressPei: Use BaseLib for 64-bit multiplication
In NvmeCreatePrpList(), calculating the PRP entry offset via
`PrpEntryIndex * sizeof (UINT64)` uses 64-bit multiplication since
PrpEntryIndex is UINT64. On 32-bit architectures (IA32), 64-bit
multiplication must use BaseLib math functions.
Use MultU64x32() for the 64-bit offset calculation and add BaseLib
to the module INF and header.
Signed-off-by: Michael D Kinney <[email protected]>
Commit: ea0ca89f7bd9b3f25481d6ab87f17808b0fd64fa
https://github.com/tianocore/edk2/commit/ea0ca89f7bd9b3f25481d6ab87f17808b0fd64fa
Author: Michael D Kinney <[email protected]>
Date: 2026-09-29 (Tue, 29 Sep 2026)
Changed paths:
M MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c
Log Message:
-----------
MdeModulePkg/NvmExpressDxe: Use BaseLib for 64-bit multiplication
Commit bf0dc7d78701 ("MdeModulePkg: Fix comparison with wider widths")
changed PrpListIndex and PrpEntryIndex from UINTN to UINT64. In
NvmeCreatePrpList(), performing arithmetic with `PrpListIndex * EFI_PAGE_SIZE`
and pointer indexing with `(UINT64 *)PrpListBase + PrpEntryIndex` results
in 64-bit multiplication.
Fix this issue by using MultU64x32() for 64-bit page offset calculations
and casting PrpEntryIndex to UINTN for pointer indexing.
Signed-off-by: Michael D Kinney <[email protected]>
Compare: https://github.com/tianocore/edk2/compare/d9934e9178e7...ea0ca89f7bd9
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