From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.136; helo=mga12.intel.com; envelope-from=zhichao.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8B662211DCD94 for ; Thu, 14 Mar 2019 02:04:14 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Mar 2019 02:04:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,477,1544515200"; d="scan'208";a="133980818" Received: from gaozhic-mobl.ccr.corp.intel.com ([10.239.196.107]) by orsmga003.jf.intel.com with ESMTP; 14 Mar 2019 02:04:10 -0700 From: Zhichao Gao To: edk2-devel@lists.01.org Cc: Michael D Kinney , Leif Lindholm , Ard Biesheuvel , Jordan Justen , Laszlo Ersek , Chasel Chiu , Nate DeSimone , Star Zeng , Jian J Wang , Hao Wu , Ray Ni , Liming Gao , Sean Brogan , Michael Turner , Bret Barkelew Date: Thu, 14 Mar 2019 17:03:34 +0800 Message-Id: <20190314090351.14248-1-zhichao.gao@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 Subject: [PATCH 00/17] Add a new API DebugVPrint for DebugLib X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Mar 2019 09:04:15 -0000 Add a new API DebugVPrint to all the instances of DebugLib. This API is added to provide a function who want to implement special debug function with '...' parameter. Add a PEIM to install gEdkiiDebugPpiGuid, and implement a PEI debug library instance base on it. All PEIMs except pei core type can use the PeiDebugLibDebugPpi to reduce its image size. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhichao Gao Cc: Michael D Kinney Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Laszlo Ersek Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Cc: Nate DeSimone Cc: Jian J Wang Cc: Hao Wu Cc: Ray Ni Cc: Liming Gao Cc: Sean Brogan Cc: Michael Turner Cc: Bret Barkelew Liming Gao (1): MdeModulePkg/PeiDebugLibDebugPpi: Add PEI debug lib Zhichao Gao (16): MdePkg/DebugLib.h: Add a new api DebugVPrint for DebugLib MdePkg/BaseDebugLibNull: Add a new api DebugVPrint for DebugLib MdePkg/BaseDebugLibSerialPort: Add a new api DebugVPrint MdePkg/UefidebugLibConOut: Add a new api DebugVPrint MdePkg/UefiDebugLibStdErr: Add a new api DebugVPrint MdePkg/DxeRuntimeDebugLibSerialPort: Add a new api DebugVPrint MdePkg/UefiDebuglibDebugPortProtocol: Add a new api DebugVPrint ArmPkg/SemiHostingDebugLib: Add a new api DebugVPrint OvmfPkg/PlatformDebugLibIoPort: Add a new api DebugVPrint IntelFsp2Pkg/BaseFspDebugLibSerialPort: Add a new api DebugVPrint IntelFspPkg/BaseFspDebugLibSerialPort: Add a new api DebugVPrint IntelFramworkModulePkg/PeiDxeDebugLibReportStatusCode: Add a new api MdeModulePkg/PeiDxeDebugLibReportStatusCode: Add a new api MdeModulePkg: Add definitions for EDKII DEBUG PPI MdeModulePkg: Add a PEIM to install Debug PPI MdeModulePkg: Add PEIM and lib to dsc file ArmPkg/Library/SemiHostingDebugLib/DebugLib.c | 41 ++- .../PeiDxeDebugLibReportStatusCode/DebugLib.c | 39 ++- .../Library/BaseFspDebugLibSerialPort/DebugLib.c | 40 ++- .../Library/BaseFspDebugLibSerialPort/DebugLib.c | 40 ++- MdeModulePkg/Include/Ppi/Debug.h | 90 +++++++ .../Library/PeiDebugLibDebugPpi/DebugLib.c | 298 +++++++++++++++++++++ .../PeiDebugLibDebugPpi/PeiDebugLibDebugPpi.inf | 55 ++++ .../PeiDxeDebugLibReportStatusCode/DebugLib.c | 39 ++- MdeModulePkg/MdeModulePkg.dec | 3 + MdeModulePkg/MdeModulePkg.dsc | 3 + .../Universal/DebugServicePei/DebugService.c | 68 +++++ .../Universal/DebugServicePei/DebugService.h | 64 +++++ .../Universal/DebugServicePei/DebugServicePei.c | 54 ++++ .../Universal/DebugServicePei/DebugServicePei.inf | 51 ++++ .../Universal/DebugServicePei/DebugServicePei.uni | 20 ++ MdePkg/Include/Library/DebugLib.h | 25 +- MdePkg/Library/BaseDebugLibNull/DebugLib.c | 27 +- MdePkg/Library/BaseDebugLibSerialPort/DebugLib.c | 41 ++- .../DxeRuntimeDebugLibSerialPort/DebugLib.c | 40 ++- MdePkg/Library/UefiDebugLibConOut/DebugLib.c | 44 ++- .../UefiDebugLibDebugPortProtocol/DebugLib.c | 41 ++- MdePkg/Library/UefiDebugLibStdErr/DebugLib.c | 41 ++- OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c | 41 ++- 23 files changed, 1141 insertions(+), 64 deletions(-) create mode 100644 MdeModulePkg/Include/Ppi/Debug.h create mode 100644 MdeModulePkg/Library/PeiDebugLibDebugPpi/DebugLib.c create mode 100644 MdeModulePkg/Library/PeiDebugLibDebugPpi/PeiDebugLibDebugPpi.inf create mode 100644 MdeModulePkg/Universal/DebugServicePei/DebugService.c create mode 100644 MdeModulePkg/Universal/DebugServicePei/DebugService.h create mode 100644 MdeModulePkg/Universal/DebugServicePei/DebugServicePei.c create mode 100644 MdeModulePkg/Universal/DebugServicePei/DebugServicePei.inf create mode 100644 MdeModulePkg/Universal/DebugServicePei/DebugServicePei.uni -- 2.16.2.windows.1