Skip to content

Commit

Permalink
OvmfPkg: set terminal type to EFI_TTY_TERM
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Pijanowski <[email protected]>
  • Loading branch information
macpijan authored and SergiiDmytruk committed Apr 21, 2024
1 parent 27ce8d2 commit 89147eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <Library/PlatformBmPrintScLib.h>
#include <Library/Tcg2PhysicalPresenceLib.h>
#include <Library/XenPlatformLib.h>
#include <Guid/TtyTerm.h>

EFI_GUID mBootMenuFile = {
0xEEC25BDC, 0x67F2, 0x4D95, { 0xB1, 0xD5, 0xF8, 0x1B, 0x20, 0x39, 0xD1, 0x1D }
Expand Down Expand Up @@ -846,6 +847,7 @@ PrepareLpcBridgeDevicePath (
EFI_STATUS Status;
EFI_DEVICE_PATH_PROTOCOL *DevicePath;
EFI_DEVICE_PATH_PROTOCOL *TempDevicePath;
EFI_GUID TerminalTypeGuid;
CHAR16 *DevPathStr;

DevicePath = NULL;
Expand Down Expand Up @@ -884,6 +886,10 @@ PrepareLpcBridgeDevicePath (
DevicePath,
(EFI_DEVICE_PATH_PROTOCOL *)&gUartDeviceNode
);

TerminalTypeGuid = gEfiTtyTermGuid;
CopyGuid (&gTerminalTypeDeviceNode.Guid, &TerminalTypeGuid);

DevicePath = AppendDevicePathNode (
DevicePath,
(EFI_DEVICE_PATH_PROTOCOL *)&gTerminalTypeDeviceNode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,4 @@
gRootBridgesConnectedEventGroupGuid
gUefiShellFileGuid
gGrubFileGuid
gEfiTtyTermGuid

0 comments on commit 89147eb

Please sign in to comment.