REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3793 Basede on UEFI Spec 2.0 section 17.7.1 structure EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE say FrameBufferSize should be size of UINTN, in MdePkg\Include\Guid\GraphicsInfoHob.h EFI_PEI_GRAPHICS_INFO_HOB FrameBufferSize is UINT32,
UefiPayloadPkg\GraphicsOutputDxe\GraphicsOutput.c MdeModulePkg\Universal\Console\GraphicsOutputDxe\GraphicsOutput.c Private->GraphicsOutputMode.FrameBufferSize = \ GraphicsInfo->FrameBufferSize; UINT32 value is getting assigned to UINTN, in X64 build compiler will throw possible loss of data error. so update the EFI_PEI_GRAPHICS_INFO_HOB based on UEFI Spec 2.0 Signed-off-by: Ashraf Ali S <ashraf.al...@intel.com> Cc: Rangasai V Chaganty <rangasai.v.chaga...@intel.com> Cc: Digant H Solanki <digant.h.sola...@intel.com> Cc: Sangeetha V <sangeeth...@intel.com> Cc: Ray Ni <ray...@intel.com> Cc: Michael D Kinney <michael.d.kin...@intel.com> Cc: Liming Gao <gaolim...@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang....@intel.com> --- MdePkg/Include/Guid/GraphicsInfoHob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdePkg/Include/Guid/GraphicsInfoHob.h b/MdePkg/Include/Guid/GraphicsInfoHob.h index 237911e63a..92bd907f20 100644 --- a/MdePkg/Include/Guid/GraphicsInfoHob.h +++ b/MdePkg/Include/Guid/GraphicsInfoHob.h @@ -26,7 +26,7 @@ typedef struct { EFI_PHYSICAL_ADDRESS FrameBufferBase; - UINT32 FrameBufferSize; + UINTN FrameBufferSize; EFI_GRAPHICS_OUTPUT_MODE_INFORMATION GraphicsMode; } EFI_PEI_GRAPHICS_INFO_HOB; -- 2.30.2.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#85259): https://edk2.groups.io/g/devel/message/85259 Mute This Topic: https://groups.io/mt/88094322/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-