From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.3934.1658820543979434179 for ; Tue, 26 Jul 2022 00:29:04 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WSF/gHfB; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: osteffen@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658820542; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FPdpFtTfeIVCZncUG9HLpr/2N5XVo8llFX+orWolxSA=; b=WSF/gHfBWr+tuOscNZ0kp0NlFuSZw6ZFQ6k6ddYBbCl/rArh9XSXvUfyvlq5wQGGL8dPXS mWBZHt9wfGKvR2SmbRmw/5e3SA0vdItsgb85VGxl0byZCAP6UG7g2QgrLxr9xEJ68AsDNw 80zkaTtrwUwrfM6SjbssZXueWN1EVBo= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-214-9QzjCAnVNtukjUtp4TP3qQ-1; Tue, 26 Jul 2022 03:28:59 -0400 X-MC-Unique: 9QzjCAnVNtukjUtp4TP3qQ-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1AD763C11E64; Tue, 26 Jul 2022 07:28:59 +0000 (UTC) Received: from osteffen-laptop.redhat.com (unknown [10.40.194.3]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4EACB40315E; Tue, 26 Jul 2022 07:28:57 +0000 (UTC) From: "Oliver Steffen" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Chasel Chiu , Gerd Hoffmann , Leif Lindholm , Nate DeSimone , Sami Mujawar , Star Zeng , Andrew Fish , Laszlo Ersek , Oliver Steffen Subject: [PATCH 1/3] ArmPlatformPkg: introduce fixed PCD for early hello message Date: Tue, 26 Jul 2022 09:28:46 +0200 Message-Id: <20220726072848.640026-2-osteffen@redhat.com> In-Reply-To: <20220726072848.640026-1-osteffen@redhat.com> References: <20220726072848.640026-1-osteffen@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=osteffen@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true From: Laszlo Ersek 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 Signed-off-by: Oliver Steffen --- 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