Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 583f1aba8b97695ebba8a9f03de0883e6d2dcd1f
      
https://github.com/tianocore/edk2/commit/583f1aba8b97695ebba8a9f03de0883e6d2dcd1f
  Author: Marvin Häuser <mhaeu...@posteo.de>
  Date:   2023-04-01 (Sat, 01 Apr 2023)

  Changed paths:
    M MdeModulePkg/Bus/Ata/AhciPei/AhciMode.c
    M MdeModulePkg/Bus/Ata/AhciPei/AhciPei.h
    M MdeModulePkg/Bus/Ata/AhciPei/AhciPeiPassThru.c
    M MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.c
    M MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.h
    M MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.h
    M MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c
    M MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c
    M MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.h
    M MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsBlockIoPei.h
    M MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c
    M MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.h
    M MdeModulePkg/Universal/EbcDxe/EbcExecute.c
    M MdeModulePkg/Universal/EbcDxe/EbcExecute.h

  Log Message:
  -----------
  MdeModulePkg: Rename IS_ALIGNED macros to avoid name collisions

This patch is a preparation for the patches that follow. The
subsequent patches will introduce and integrate new alignment-related
macros, which collide with existing definitions in MdeModulePkg.
Temporarily rename them to avoid build failure, till they can be
substituted with the new, shared definitions.

Cc: Jian J Wang <jian.j.w...@intel.com>
Cc: Hao A Wu <hao.a...@intel.com>
Cc: Ray Ni <ray...@intel.com>
Signed-off-by: Marvin Häuser <mhaeu...@posteo.de>
Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
Reviewed-by: Hao A Wu <hao.a...@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kin...@intel.com>


  Commit: 24e6daa2bcfb64bbe871f76d8e9774d67f247717
      
https://github.com/tianocore/edk2/commit/24e6daa2bcfb64bbe871f76d8e9774d67f247717
  Author: Gerd Hoffmann <kra...@redhat.com>
  Date:   2023-04-01 (Sat, 01 Apr 2023)

  Changed paths:
    M OvmfPkg/AmdSevDxe/AmdSevDxe.c
    M OvmfPkg/Library/BaseMemEncryptSevLib/X64/SnpPageStateChangeInternal.c

  Log Message:
  -----------
  OvmfPkg: Rename IS_ALIGNED macros to avoid name collisions

This patch is a preparation for the patches that follow. The
subsequent patches will introduce and integrate new alignment-related
macros, which collide with existing definitions in OvmfPkg.
Temporarily rename them to avoid build failure, till they can be
substituted with the new, shared definitions.

Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
Reviewed-by: Michael D Kinney <michael.d.kin...@intel.com>
Reviewed-by: Jiewen Yao <jiewen....@intel.com>
Acked-by: Tom Lendacky <thomas.lenda...@amd.com>


  Commit: 836042ffd8f1b423d76d01dbdb19982ee5339205
      
https://github.com/tianocore/edk2/commit/836042ffd8f1b423d76d01dbdb19982ee5339205
  Author: Marvin Häuser <mhaeu...@posteo.de>
  Date:   2023-04-01 (Sat, 01 Apr 2023)

  Changed paths:
    M MdePkg/Include/Base.h

  Log Message:
  -----------
  MdePkg/Base.h: Introduce various alignment-related macros

ALIGNOF: Determining the alignment requirement of data types is
crucial to ensure safe memory accesses when parsing untrusted data.

IS_POW2: Determining whether a value is a power of two is important
to verify whether untrusted values are valid alignment values.

IS_ALIGNED: In combination with ALIGNOF data offsets can be verified.
A more general version of the IS_ALIGNED macro previously defined by
several modules.

ADDRESS_IS_ALIGNED: Variant of IS_ALIGNED for pointers and addresses.
Replaces module-specific definitions throughout the code base.

ALIGN_VALUE_ADDEND: The addend to align up can be used to directly
determine the required offset for data alignment.

Cc: Michael D Kinney <michael.d.kin...@intel.com>
Cc: Liming Gao <gaolim...@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang....@intel.com>
Cc: Vitaly Cheptsov <vit9...@protonmail.com>
Signed-off-by: Marvin Häuser <mhaeu...@posteo.de>
Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
Reviewed-by: Michael D Kinney <michael.d.kin...@intel.com>


  Commit: 495809a614083bd8c43eb3323b65df36985f4a50
      
https://github.com/tianocore/edk2/commit/495809a614083bd8c43eb3323b65df36985f4a50
  Author: Marvin Häuser <mhaeu...@posteo.de>
  Date:   2023-04-01 (Sat, 01 Apr 2023)

  Changed paths:
    M MdeModulePkg/Bus/Ata/AhciPei/AhciMode.c
    M MdeModulePkg/Bus/Ata/AhciPei/AhciPei.h
    M MdeModulePkg/Bus/Ata/AhciPei/AhciPeiPassThru.c
    M MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.c
    M MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.h
    M MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.h
    M MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c
    M MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c
    M MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.h
    M MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsBlockIoPei.h
    M MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c
    M MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.h
    M MdeModulePkg/Universal/EbcDxe/EbcExecute.c
    M MdeModulePkg/Universal/EbcDxe/EbcExecute.h

  Log Message:
  -----------
  MdeModulePkg: Consume new alignment-related macros

This patch substitutes the macros that were renamed in the first
patch with the new, shared alignment macros.

Cc: Jian J Wang <jian.j.w...@intel.com>
Cc: Hao A Wu <hao.a...@intel.com>
Cc: Ray Ni <ray...@intel.com>
Cc: Vitaly Cheptsov <vit9...@protonmail.com>
Signed-off-by: Marvin Häuser <mhaeu...@posteo.de>
Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
Reviewed-by: Hao A Wu <hao.a...@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kin...@intel.com>


  Commit: 12d3d60f51550a7166f8f3e758866b53b9a88e73
      
https://github.com/tianocore/edk2/commit/12d3d60f51550a7166f8f3e758866b53b9a88e73
  Author: Gerd Hoffmann <kra...@redhat.com>
  Date:   2023-04-01 (Sat, 01 Apr 2023)

  Changed paths:
    M OvmfPkg/AmdSevDxe/AmdSevDxe.c
    M OvmfPkg/Library/BaseMemEncryptSevLib/X64/SnpPageStateChangeInternal.c

  Log Message:
  -----------
  OvmfPkg: Consume new alignment-related macros

This patch substitutes the macros that were renamed in the second
patch with the new, shared alignment macros.

Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
Reviewed-by: Michael D Kinney <michael.d.kin...@intel.com>
Reviewed-by: Jiewen Yao <jiewen....@intel.com>
Acked-by: Tom Lendacky <thomas.lenda...@amd.com>


  Commit: 4ca4d2b9df27f9c58009d623678ac911c544d36c
      
https://github.com/tianocore/edk2/commit/4ca4d2b9df27f9c58009d623678ac911c544d36c
  Author: Gerd Hoffmann <kra...@redhat.com>
  Date:   2023-04-01 (Sat, 01 Apr 2023)

  Changed paths:
    M UefiCpuPkg/Library/MtrrLib/MtrrLib.c

  Log Message:
  -----------
  UefiCpuPkg/MtrrLib: use new IS_POW2() macro.

Drop MtrrLibIsPowerOfTwo function, use the new IS_POW2() macro instead.

The ASSERT() removed (inside MtrrLibIsPowerOfTwo) is superfluous,
another ASSERT() a few lines up in MtrrLibCalculateMtrrs() already
guarantees that Length can not be zero at this point.

Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
Reviewed-by: Ray Ni <ray...@intel.com>


Compare: https://github.com/tianocore/edk2/compare/67a6f414aa0e...4ca4d2b9df27


_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to