summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Ia32
diff options
context:
space:
mode:
authorOliver Smith-Denny <osde@linux.microsoft.com>2024-08-21 13:59:15 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-08-28 01:26:39 +0000
commit39a999eb1decf486c615489174912f2d278636d1 (patch)
tree60fbc66237f3cb8a335bb84857178dd14e16e508 /MdePkg/Library/BaseLib/Ia32
parentded4191e1087c56e0bdeb118fd519d18cb353ef3 (diff)
downloadedk2-master.zip
edk2-master.tar.gz
edk2-master.tar.bz2
ArmPlatformPkg: Initialize Serial Port Before WritingHEADmaster
PrePeiCore and Sec directly write the firmware version to the serial port. They relies on another component to initialize the serial port, however in certain configurations (such as release builds that don't use a DebugLib that initializes the serial port), the serial port can be uninitialized at this point, causing a crash when SerialPortWrite is called here. This patch updates PrePeiCore and Sec to call SerialPortInitialize before calling SerialPortWrite directly, which follows the pattern of other serial port writes. It is accepted to call the initialization routine multiple times, it is supposed to dump out if the serial port is already initialized. Signed-off-by: Oliver Smith-Denny <osde@linux.microsoft.com>
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32')
0 files changed, 0 insertions, 0 deletions