63b5781
From 6f89eae9f2abe20e35058848e7cc10a69a6b05ec Mon Sep 17 00:00:00 2001
3485002
From: Laszlo Ersek <lersek@redhat.com>
3485002
Date: Wed, 14 Oct 2015 13:49:43 +0200
63b5781
Subject: [PATCH] ArmPlatformPkg: introduce fixed PCD for early hello message
63b5781
 (RH only)
3485002
3485002
Drew has proposed that ARM|AARCH64 platform firmware (especially virtual
3485002
machine firmware) print a reasonably early, simple hello message to the
3485002
serial port, regardless of debug mask settings. This should inform
3485002
interactive users, and provide some rough help in localizing boot
3485002
problems, even with restrictive debug masks.
3485002
3485002
If a platform doesn't want this feature, it should stick with the default
3485002
empty string.
3485002
3485002
RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1270279
3485002
Downstream only:
3485002
<http://thread.gmane.org/gmane.comp.bios.edk2.devel/2996/focus=3433>.
3485002
3485002
Notes about the 20160608b-988715a -> 20170228-c325e41585e3 rebase:
3485002
3485002
- no changes
3485002
3485002
Notes about the 20170228-c325e41585e3 -> 20171011-92d07e48907f rebase:
3485002
3485002
- no changes
3485002
3485002
Suggested-by: Drew Jones <drjones@redhat.com>
3485002
Contributed-under: TianoCore Contribution Agreement 1.0
3485002
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
3485002
(cherry picked from commit 7ce97b06421434c82095f01a1753a8c9c546cc30)
3485002
(cherry picked from commit 20b1f1cbd0590aa71c6d99d35e23cf08e0707750)
1778f26
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
3485002
---
3485002
 ArmPlatformPkg/ArmPlatformPkg.dec | 7 +++++++
3485002
 1 file changed, 7 insertions(+)
3485002
3485002
diff --git a/ArmPlatformPkg/ArmPlatformPkg.dec b/ArmPlatformPkg/ArmPlatformPkg.dec
63b5781
index 5f67e74154..2956d3e2d8 100644
3485002
--- a/ArmPlatformPkg/ArmPlatformPkg.dec
3485002
+++ b/ArmPlatformPkg/ArmPlatformPkg.dec
63b5781
@@ -113,6 +113,13 @@
1778f26
   ## If set, this will swap settings for HDLCD RED_SELECT and BLUE_SELECT registers
1778f26
   gArmPlatformTokenSpaceGuid.PcdArmHdLcdSwapBlueRedSelect|FALSE|BOOLEAN|0x00000045
3485002
 
3485002
+  #
3485002
+  # Early hello message (ASCII string), printed to the serial port.
3485002
+  # If set to the empty string, nothing is printed.
3485002
+  # Otherwise, a trailing CRLF should be specified explicitly.
3485002
+  #
3485002
+  gArmPlatformTokenSpaceGuid.PcdEarlyHelloMessage|""|VOID*|0x00000100
3485002
+
3485002
 [PcdsFixedAtBuild.common,PcdsDynamic.common]
3485002
   ## PL031 RealTimeClock
3485002
   gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0|UINT32|0x00000024