]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPlatformPkg: Remove UINTN cast when setting BaudRate.
authorAlexei <Alexei.Fedorov@arm.com>
Wed, 21 Sep 2016 20:33:15 +0000 (21:33 +0100)
committerLeif Lindholm <leif.lindholm@linaro.org>
Tue, 11 Oct 2016 13:23:46 +0000 (14:23 +0100)
commita4bcf0bcdd81285e2ae881db7a51a454f8ab0951
treef1c804a3102108141a8292934ef632090be96c3f
parent2d52a3a237c4294022030d99c82e26f9e58276ad
ArmPlatformPkg: Remove UINTN cast when setting BaudRate.

SerialPortInitialize() set the BaudRate variable (type UINT64) as:
BaudRate = (UINTN)FixedPcdGet64 (PcdUartDefaultBaudRate);

This commit fixes a potential problem on ARM 32-bit builds, where the
UINTN type is defined as UINT32, by removing the cast:

BaudRate = FixedPcdGet64 (PcdUartDefaultBaudRate);

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Alexei Fedorov <alexei.fedorov@arm.com>
Signed-off-by: Evan Lloyd <evan.lloyd@arm.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.c