From 2bbbdc85a3bbc7ec63fc8317fcfbd9bab0006251 Mon Sep 17 00:00:00 2001 From: Shifei Lu Date: Tue, 27 Jan 2015 08:47:14 +0000 Subject: [PATCH] Align the overrider with EDK2 trunk. Align the overrider with EDK2 trunk.(The override fixed default console text color) This override will be removed after core fixing. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shifei Lu Reviewed-by: David Wei git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16671 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Console/ConSplitterDxe/ConSplitter.c | 4 +- .../Console/ConSplitterDxe/ConSplitterDxe.inf | 61 ++++++++++++------ .../Console/ConSplitterDxe/ConSplitterDxe.uni | Bin 0 -> 4066 bytes .../ConSplitterDxe/ConSplitterDxeExtra.uni | Bin 0 -> 1356 bytes 4 files changed, 44 insertions(+), 21 deletions(-) create mode 100644 Vlv2TbltDevicePkg/Override/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.uni create mode 100644 Vlv2TbltDevicePkg/Override/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxeExtra.uni diff --git a/Vlv2TbltDevicePkg/Override/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c b/Vlv2TbltDevicePkg/Override/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c index 79e6153985..82f790c34d 100644 --- a/Vlv2TbltDevicePkg/Override/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c +++ b/Vlv2TbltDevicePkg/Override/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c @@ -16,7 +16,7 @@ never removed. Such design ensures sytem function well during none console device situation. -Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -4557,7 +4557,7 @@ ConSplitterTextOutSetAttribute ( // // Check whether param Attribute is valid. // - if ( (Attribute > (UINTN)(((UINT32)-1)>>1)) ) { + if ((Attribute | 0x7F) != 0x7F) { return EFI_UNSUPPORTED; } diff --git a/Vlv2TbltDevicePkg/Override/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf b/Vlv2TbltDevicePkg/Override/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf index 4885dc7fe9..ff10a50b50 100644 --- a/Vlv2TbltDevicePkg/Override/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf +++ b/Vlv2TbltDevicePkg/Override/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf @@ -7,10 +7,10 @@ # table according PCD settings(PcdConOutGopSupport, and PcdConOutUgaSupport). It always # consumes Graphics Output protocol which is produced by display device, and consumes UGA Draw # protocol which is produced by display device according to PcdUgaConsumeSupport value. -# Note: If only UGA Draw protocol is installed in system table, PcdUgaConsumeSupport -# should be set to TRUE. +# Note: If only UGA Draw protocol is installed in system, PcdUgaConsumeSupport should be +# set to TRUE. # -# Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.
+# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License @@ -25,6 +25,7 @@ [Defines] INF_VERSION = 0x00010005 BASE_NAME = ConSplitterDxe + MODULE_UNI_FILE = ConSplitterDxe.uni FILE_GUID = 408edcec-cf6d-477c-a5a8-b4844e3de281 MODULE_TYPE = UEFI_DRIVER VERSION_STRING = 1.0 @@ -70,27 +71,49 @@ PcdLib [Guids] - gEfiConsoleInDeviceGuid ## SOMETIMES_CONSUMES - gEfiStandardErrorDeviceGuid ## SOMETIMES_CONSUMES - gEfiConsoleOutDeviceGuid ## SOMETIMES_CONSUMES - gConnectConInEventGuid ## ALWAYS_CONSUMES + gEfiConsoleInDeviceGuid ## SOMETIMES_CONSUMES ## UNDEFINED # protocol GUID installed on device handle + gEfiStandardErrorDeviceGuid ## SOMETIMES_CONSUMES ## UNDEFINED # protocol GUID installed on device handle + gEfiConsoleOutDeviceGuid ## SOMETIMES_CONSUMES ## UNDEFINED # protocol GUID installed on device handle + ## SOMETIMES_PRODUCES ## Event + ## SOMETIMES_CONSUMES ## Event + gConnectConInEventGuid [Protocols] - gEfiSimplePointerProtocolGuid ## BY_START - gEfiAbsolutePointerProtocolGuid ## BY_START - gEfiSimpleTextInProtocolGuid ## BY_START - gEfiSimpleTextInputExProtocolGuid ## BY_START - gEfiSimpleTextOutProtocolGuid ## BY_START - gEfiGraphicsOutputProtocolGuid ## BY_START - gEfiUgaDrawProtocolGuid ## BY_START - + ## PRODUCES + ## TO_START + gEfiSimplePointerProtocolGuid + ## PRODUCES + ## TO_START + gEfiAbsolutePointerProtocolGuid + ## PRODUCES + ## TO_START + gEfiSimpleTextInProtocolGuid + ## PRODUCES + ## TO_START + gEfiSimpleTextInputExProtocolGuid + ## PRODUCES + ## TO_START + gEfiSimpleTextOutProtocolGuid + ## SOMETIMES_PRODUCES + ## SOMETIMES_CONSUMES + gEfiGraphicsOutputProtocolGuid + ## SOMETIMES_PRODUCES + ## SOMETIMES_CONSUMES + gEfiUgaDrawProtocolGuid [FeaturePcd] - gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport - gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport - gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport + gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport ## CONSUMES + gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport ## CONSUMES + gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport ## CONSUMES [Pcd] + ## SOMETIMES_PRODUCES + ## SOMETIMES_CONSUMES gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow + ## SOMETIMES_PRODUCES + ## SOMETIMES_CONSUMES gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn - gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand + gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand ## SOMETIMES_CONSUMES + +[UserExtensions.TianoCore."ExtraFiles"] + ConSplitterDxeExtra.uni diff --git a/Vlv2TbltDevicePkg/Override/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.uni b/Vlv2TbltDevicePkg/Override/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.uni new file mode 100644 index 0000000000000000000000000000000000000000..cb8037d71b71ce94c9fc6873c4f9136ddab27365 GIT binary patch literal 4066 zcmdUyU2hsk6o%)zQvSorxk;+TPO7RGQB~EhiG$Jx3xm>LMc81B0ybhHZvK4R=b2%d z<)ca(xl$~&yYqR@d*1Ug!{2`$go9AN(a7w$>M+iLI^G_&nOC+{@US&??y{Gh!KFbH-gpUDu5D zSlwSq$=1t|OkMCTgXns&<4QHzF2jWRWaTDz6}CC-6|5IWZ;4`?>AJ3UpVe6}!Y@k? zO_8Q%ttbMPxEL=2wK1h;|wy;v)K@#o9T3^6>gp(pC5B-Qd~n!xZI-{ls|kTE*bH$E*bMzQE30Q;P5g z){UMQaL^=+i|B=M*wPw@nz1ib1-J6tuaPY;-C}SWK5%G zS6(S6Q>?Kf50U7uN5sNozTbss{C=SIblH0zzK>O>NhHdOnW=;sGJIQ2MzpSDG#@hW ziY(jOYuypwEY{LKD}M|}ApB{CKcmZMMv9$b)L|9PbuZQ7DvKu|aqc5HQZ7#-D)o(M zjn{I@I%^HEavA^TSMp9J-`&Q(8jTQ7wOl(E>~PkaRGkQ^{!NgSQKl?0rz(D&y@~Nu z?K`3(SaW_|!;-nE=gOwFBQPjYS=AZq*Hd9cMq5?0Uu0E_E*VcA67!#|*~GNYOF`vH z)xc_hI;reiJ4=8~hskP2#Ids}cF_lGDeu+pMW1WbT{9bAuIUQF4n`fmGjn ze3h%zJ-$b=Z|_MB(_7}1+KL*B@Rn8Wi0lpHO{6NL6}7kNiQO@Ec3A5gwWd`sS*!Lx z_`YUFRds=EAj-X-%L|I6=?R-gJwlyczzzeR4} Xt?mxV-QOSY*S#_QC*5^l%oX+@>nE~6 literal 0 HcmV?d00001 diff --git a/Vlv2TbltDevicePkg/Override/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxeExtra.uni b/Vlv2TbltDevicePkg/Override/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxeExtra.uni new file mode 100644 index 0000000000000000000000000000000000000000..86515ff49d9be75a960aa4a55b957b41e1e35c5d GIT binary patch literal 1356 zcmZvcTW`}q5QXO%iT_}wFM!&F+Y>^Fh8VDDlPDLpJXOx6sih{4oYFS@c;Gv;c1!}Y z?46yRIdk^xcz^$DS<52c7d(-Dv}?=k*5>xqp5WEmC(CVRLtEp|?2cz{g>~$aF|spO zr7eO=+7Bn+e>?8Z?H~w zv$uAPojBSY1_7afX%0q8e&*bptemp02=NNoVphOq!&}(Bb8p&vYums+{D<8LMw#zt zO?(cDYAivi_IF2wG)dt+C1ME^t!+y!B0OTHdKuO&X!Y(>yvml!Q>>LUlWrBhvS($5 zdu*LlY7@T7`$2|Q3+#$XsI_#~6^fWCQfC?TkrFv4U+1+s!w&PaJuWrZ2iIcC_ut)S za1f$61ie&i!(6+bz_Y5WbCIfIe~mw!kT^dQbI565m!RdAs7aZhmkNkc-CYs*>e;ou z^M1~;g0_k;T5XA?Q_kJ|KfDPx=?#w zF|rGy2F|RDKLJ%3J+D4sChqd7=7?CusA`D%OsuMZXZ*&BnCt(G%PL_Pv0d(PYV-sx z`gD_OcC5MMSnH?zr{#Y6j&}W`J482%w7V+R?SnGd?cfUR9;jpRV`93nJjaS0?TC|8 t=Px+zl&^YC=YK-H_^Dc>yqPxiLHL&rZ#$jfrDJxyi*;KR literal 0 HcmV?d00001 -- 2.39.2