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 committed Oct 11, 2023
1 parent 55e735d commit 3fd08d4
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 @@ -12,6 +12,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 @@ -717,6 +718,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 @@ -748,6 +750,10 @@ PrepareLpcBridgeDevicePath (
(EFI_DEVICE_PATH_PROTOCOL *)&gPnp16550ComPortDeviceNode);
DevicePath = AppendDevicePathNode (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 @@ -83,3 +83,4 @@
gEfiGlobalVariableGuid
gRootBridgesConnectedEventGroupGuid
gUefiShellFileGuid
gEfiTtyTermGuid

0 comments on commit 3fd08d4

Please sign in to comment.