From: Laszlo Ersek <ler...@redhat.com>

Add a PCD for defining a hello message that gets printed to the serial port
very early in the boot process, regardless of debug masks. This is useful
for debugging boot problems (especially in virtual machines) and informs
interactive users that the firmware is running.

If a platform doesn't want this feature, it should stick with the default
empty string.

Singed-off-by: Laszlo Ersek <ler...@redhat.com>
Signed-off-by: Oliver Steffen <ostef...@redhat.com>
---
 ArmPlatformPkg/ArmPlatformPkg.dec | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/ArmPlatformPkg/ArmPlatformPkg.dec 
b/ArmPlatformPkg/ArmPlatformPkg.dec
index dd6e78f62aa1..ac726417cbe7 100644
--- a/ArmPlatformPkg/ArmPlatformPkg.dec
+++ b/ArmPlatformPkg/ArmPlatformPkg.dec
@@ -122,6 +122,13 @@ [PcdsFixedAtBuild.common]
   ## If set, this will swap settings for HDLCD RED_SELECT and BLUE_SELECT 
registers
   
gArmPlatformTokenSpaceGuid.PcdArmHdLcdSwapBlueRedSelect|FALSE|BOOLEAN|0x00000045
 
+  #
+  # Early hello message (ASCII string), printed to the serial port.
+  # If set to the empty string, nothing is printed.
+  # Otherwise, a trailing CRLF should be specified explicitly.
+  #
+  gArmPlatformTokenSpaceGuid.PcdEarlyHelloMessage|""|VOID*|0x00000100
+
 [PcdsFixedAtBuild.common,PcdsDynamic.common]
   ## PL031 RealTimeClock
   gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0|UINT32|0x00000024
-- 
2.37.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#91837): https://edk2.groups.io/g/devel/message/91837
Mute This Topic: https://groups.io/mt/92622721/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to