]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtPkg: Make terminal type consistent
authorHeyi Guo <heyi.guo@linaro.org>
Thu, 16 Jul 2015 08:50:24 +0000 (08:50 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Thu, 16 Jul 2015 08:50:24 +0000 (08:50 +0000)
Change default terminal type to be consistent with default
ConIn/ConOut device path, which is now determined by TTY_TERMINAL
flag, TTYTERM or VT100.

I can't say this is a bug, as we can pass the whole console device
path to ConnectController, and TerminalDxe driver will pick up the
terminal in the remaining device path. However, in rare circumstances,
the console devices may be disconnected with the driver, and they will
be ignored by ConPlatformDxe until we pass the device path explicitly
just as BDS.

Changing default terminal type to be the same with console device
path could help serial terminal be reconnected with normal connect
controller operation.

Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Heyi Guo <heyi.guo@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18025 6f19259b-4bc3-4df7-8a09-765794883524

ArmVirtPkg/ArmVirtQemu.dsc

index 0d4f4b0df4537ab80a202512747678515c3c182c..be2b9840027f4e5ed6075ac704bd182f46e24020 100644 (file)
 !if $(TTY_TERMINAL) == TRUE\r
   gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenMsg(7D916D80-5BB1-458C-A48F-E25FDD51EF94)"\r
   gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenMsg(7D916D80-5BB1-458C-A48F-E25FDD51EF94)"\r
+  ## Terminal Type - TTYTERM, consistent with ConOut/ConIn Device Path.\r
+  ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM\r
+  gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4\r
 !else\r
   gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"\r
   gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"\r
+  ## Terminal Type - VT100, consistent with ConOut/ConIn Device Path.\r
+  ## When Intel BDS is enabled, the above ConOut/ConIn device path is useless,\r
+  ## but we still use VT100 terminal type when TTY_TERMINAL is not TRUE.\r
+  ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM\r
+  gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1\r
 !endif\r
   gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3\r
 \r