Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 39a999eb1decf486c615489174912f2d278636d1
https://github.com/tianocore/edk2/commit/39a999eb1decf486c615489174912f2d278636d1
Author: Oliver Smith-Denny <[email protected]>
Date: 2024-08-28 (Wed, 28 Aug 2024)
Changed paths:
M ArmPlatformPkg/PrePeiCore/PrePeiCore.c
M ArmPlatformPkg/Sec/Sec.c
Log Message:
-----------
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 <[email protected]>
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits