From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id D44567803CD for ; Sun, 8 Oct 2023 15:39:32 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=kVSrnIIAY5hSgCrp0v+fk41OQbJP8phDSWcwnenvHVc=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1696779571; v=1; b=X0FbTQ0NUdGqGsHtQjZtEwNN171YslHoQQ/SX22ZXHuQlsnJHZPg3XIWxvsyaSbnKqyNjeT8 /51gZm1kvMqhGM2ym1TuSQDcQKgrY82ig2qAR9lIoMGTnqwTY1k80CD9GscqKTQ4Wt2E5FTqWxQ s5n9sh3yMiIIsgZ4qAa1sAD0= X-Received: by 127.0.0.2 with SMTP id opWFYY7687511xicCH71hkWc; Sun, 08 Oct 2023 08:39:31 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web10.40417.1696779570897692815 for ; Sun, 08 Oct 2023 08:39:31 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-663-5OYe7dgNNqWzFvfRJ_O8AQ-1; Sun, 08 Oct 2023 11:39:21 -0400 X-MC-Unique: 5OYe7dgNNqWzFvfRJ_O8AQ-1 X-Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5E4E3802C1A; Sun, 8 Oct 2023 15:39:21 +0000 (UTC) X-Received: from lacos-laptop-9.usersys.redhat.com (unknown [10.39.192.50]) by smtp.corp.redhat.com (Postfix) with ESMTP id 631F4492B05; Sun, 8 Oct 2023 15:39:20 +0000 (UTC) From: "Laszlo Ersek" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Gerd Hoffmann , Leif Lindholm , Sami Mujawar Subject: [edk2-devel] [PATCH 4/9] ArmVirtPkg: adhere to the serial port selected by /chosen "stdout-path" Date: Sun, 8 Oct 2023 17:39:07 +0200 Message-Id: <20231008153912.175941-5-lersek@redhat.com> In-Reply-To: <20231008153912.175941-1-lersek@redhat.com> References: <20231008153912.175941-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lersek@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: uEVJ0gLj9GTI4h3GuGcD2PbDx7686176AA= Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="US-ASCII"; x-default=true X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=X0FbTQ0N; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Q29udmVydCBib3RoIEVhcmx5RmR0UEwwMTFTZXJpYWxQb3J0TGliIGFuZCBQbGF0Zm9ybVBlaUxp YiBhdCB0aGUgc2FtZQp0aW1lIHRvIGNsaWVudHMgb2YgRmR0U2VyaWFs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G9ydCAoDQot ICAgICAgICAgICAgICAgICAgIFVhcnRCYXNlLA0KLSAgICAgICAgICAgICAgICAgICBGaXhlZFBj ZEdldDMyIChQTDAxMVVhcnRDbGtJbkh6KSwNCi0gICAgICAgICAgICAgICAgICAgJkJhdWRSYXRl LA0KLSAgICAgICAgICAgICAgICAgICAmUmVjZWl2ZUZpZm9EZXB0aCwNCi0gICAgICAgICAgICAg ICAgICAgJlBhcml0eSwNCi0gICAgICAgICAgICAgICAgICAgJkRhdGFCaXRzLA0KLSAgICAgICAg ICAgICAgICAgICAmU3RvcEJpdHMNCi0gICAgICAgICAgICAgICAgICAgKTsNCi0gICAgICAgIGlm ICghRUZJX0VSUk9SIChTdGF0dXMpKSB7DQotICAgICAgICAgIHJldHVybiBVYXJ0QmFzZTsNCi0g ICAgICAgIH0NCi0gICAgICB9DQotICAgIH0NCisgIFN0YXR1cyA9IFBMMDExVWFydEluaXRpYWxp emVQb3J0ICgNCisgICAgICAgICAgICAgVWFydEJhc2UsDQorICAgICAgICAgICAgIEZpeGVkUGNk R2V0MzIgKFBMMDExVWFydENsa0luSHopLA0KKyAgICAgICAgICAgICAmQmF1ZFJhdGUsDQorICAg ICAgICAgICAgICZSZWNlaXZlRmlmb0RlcHRoLA0KKyAgICAgICAgICAgICAmUGFyaXR5LA0KKyAg ICAgICAgICAgICAmRGF0YUJpdHMsDQorICAgICAgICAgICAgICZTdG9wQml0cw0KKyAgICAgICAg ICAgICApOw0KKyAgaWYgKCFSRVRVUk5fRVJST1IgKFN0YXR1cykpIHsNCisgICAgcmV0dXJuIFVh cnRCYXNlOw0KICAgfQ0KIA0KICAgcmV0dXJuIDA7DQpkaWZmIC0tZ2l0IGEvQXJtVmlydFBrZy9M aWJyYXJ5L1BsYXRmb3JtUGVpTGliL1BsYXRmb3JtUGVpTGliLmMgYi9Bcm1WaXJ0UGtnL0xpYnJh cnkvUGxhdGZvcm1QZWlMaWIvUGxhdGZvcm1QZWlMaWIuYwppbmRleCAxYjQzZDc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