audk/ArmPlatformPkg
Oliver Smith-Denny 39a999eb1d ArmPlatformPkg: Initialize Serial Port Before Writing
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>
2024-08-28 01:26:39 +00:00
..
Drivers ArmPlatformPkg/Driver/PL061Gpio: Error checking for pin on release build 2024-07-16 15:19:27 +00:00
Include/Library ArmPlatformPkg: Fix some spelling mistakes found by cspell 2024-08-01 19:53:47 +00:00
Library ArmPlatformPkg: Fix some spelling mistakes found by cspell 2024-08-01 19:53:47 +00:00
MemoryInitPei ArmPlatformPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PeilessSec ArmPlatformPkg: Clone PrePiUniCore into PeilessSec 2024-08-01 14:55:03 +00:00
PlatformPei ArmPlatformPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PrePeiCore ArmPlatformPkg: Initialize Serial Port Before Writing 2024-08-28 01:26:39 +00:00
PrePi ArmPlatformPkg/PrePi: Make some functions STATIC 2024-08-01 14:55:03 +00:00
Scripts ArmPlatformPkg: Remove RVCT support 2022-05-13 14:58:54 +00:00
Sec ArmPlatformPkg: Initialize Serial Port Before Writing 2024-08-28 01:26:39 +00:00
ArmPlatformPkg.ci.yaml ArmPlatformPkg: Update YAML to ignore specific ECC files/errors 2021-11-30 14:19:07 +00:00
ArmPlatformPkg.dec ArmPlatformPkg/PrePi: Drop secondary stack handling 2024-08-01 14:55:03 +00:00
ArmPlatformPkg.dsc ArmPlatformPkg: Clone PrePeiUniCore into Sec 2024-08-01 14:55:03 +00:00
SecureBootDefaultKeys.fdf.inc