diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2023-03-17 13:19:21 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-03-23 09:11:35 +0000 |
commit | cf6a0a52b07195ba278e48b89cfb7ddbad332ab1 (patch) | |
tree | 1a3c5526da03ceff427cb1122869ced0004fbf19 /OvmfPkg/Library/PlatformBootManagerLib | |
parent | 4f441d024bee7e1a6438737b58e4b0b6856b3eab (diff) | |
download | edk2-cf6a0a52b07195ba278e48b89cfb7ddbad332ab1.tar.gz edk2-cf6a0a52b07195ba278e48b89cfb7ddbad332ab1.tar.bz2 edk2-cf6a0a52b07195ba278e48b89cfb7ddbad332ab1.zip |
OvmfPkg/PlatformBootManagerLib: use utf8 for the serial console.
Time to leave behind relics from the last century and arrive in the
modern world. Drop PC-ANSI Terminal Type for the serial console, use
UTF-8 instead.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'OvmfPkg/Library/PlatformBootManagerLib')
-rw-r--r-- | OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.h | 4 | ||||
-rw-r--r-- | OvmfPkg/Library/PlatformBootManagerLib/PlatformData.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.h b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.h index 1676d61616..18b3deb9db 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.h +++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.h @@ -126,7 +126,7 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode; 1 \
}
-#define gPcAnsiTerminal \
+#define gVtUtf8Terminal \
{ \
{ \
MESSAGING_DEVICE_PATH, \
@@ -136,7 +136,7 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode; (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8) \
} \
}, \
- DEVICE_PATH_MESSAGING_PC_ANSI \
+ DEVICE_PATH_MESSAGING_VT_UTF8 \
}
#define gEndEntire \
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/PlatformData.c b/OvmfPkg/Library/PlatformBootManagerLib/PlatformData.c index 6536d9fe36..c1801725c2 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/PlatformData.c +++ b/OvmfPkg/Library/PlatformBootManagerLib/PlatformData.c @@ -47,7 +47,7 @@ typedef struct { ACPI_HID_DEVICE_PATH gPnpPs2KeyboardDeviceNode = gPnpPs2Keyboard;
ACPI_HID_DEVICE_PATH gPnp16550ComPortDeviceNode = gPnp16550ComPort;
UART_DEVICE_PATH gUartDeviceNode = gUart;
-VENDOR_DEVICE_PATH gTerminalTypeDeviceNode = gPcAnsiTerminal;
+VENDOR_DEVICE_PATH gTerminalTypeDeviceNode = gVtUtf8Terminal;
//
// Platform specific keyboard device path
@@ -83,7 +83,7 @@ VENDOR_UART_DEVICE_PATH gDebugAgentUartDevicePath = { 0, // Parity - Default
0, // StopBits - Default
},
- gPcAnsiTerminal,
+ gVtUtf8Terminal,
gEndEntire
};
@@ -168,7 +168,7 @@ STATIC VENDOR_UART_DEVICE_PATH gXenConsoleDevicePath = { FixedPcdGet8 (PcdUartDefaultParity),
FixedPcdGet8 (PcdUartDefaultStopBits),
},
- gPcAnsiTerminal,
+ gVtUtf8Terminal,
gEndEntire
};
|