mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
aff67922c5
commit
b29150aa3e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue