summaryrefslogtreecommitdiffstats
path: root/ArmVirtPkg/Library
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2023-07-06 14:30:09 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-09-07 15:47:58 +0000
commitb29150aa3e9157908052c212d3afacbff8dbab1b (patch)
tree082feffb331af29a980f3d55166cc10d3e596acd /ArmVirtPkg/Library
parentaff67922c5d2127d4e18b3870765b83e9b1e07c9 (diff)
downloadedk2-b29150aa3e9157908052c212d3afacbff8dbab1b.tar.gz
edk2-b29150aa3e9157908052c212d3afacbff8dbab1b.tar.bz2
edk2-b29150aa3e9157908052c212d3afacbff8dbab1b.zip
ArmVirtPkg: use PcdTerminalTypeGuidBuffer for VirtioSerial console
Be consistent with pl011-based serial console setup. Suggested-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Acked-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'ArmVirtPkg/Library')
-rw-r--r--ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c b/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c
index b92a916f7e..85c01351b0 100644
--- a/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c
+++ b/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c
@@ -606,7 +606,7 @@ SetupVirtioSerial (
1
};
- STATIC CONST VENDOR_DEVICE_PATH TerminalNode = {
+ STATIC VENDOR_DEVICE_PATH TerminalNode = {
{
MESSAGING_DEVICE_PATH,
MSG_VENDOR_DP,
@@ -615,7 +615,7 @@ SetupVirtioSerial (
(UINT8)((sizeof (VENDOR_DEVICE_PATH)) >> 8)
},
},
- DEVICE_PATH_MESSAGING_VT_UTF8
+ // copy from PcdTerminalTypeGuidBuffer
};
EFI_STATUS Status;
@@ -634,6 +634,11 @@ SetupVirtioSerial (
return;
}
+ CopyGuid (
+ &TerminalNode.Guid,
+ PcdGetPtr (PcdTerminalTypeGuidBuffer)
+ );
+
DevicePath = AppendDevicePathNode (
DevicePath,
&SerialNode.Header