From nobody Fri Dec 27 02:05:05 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1501752399532780.5777187819953; Thu, 3 Aug 2017 02:26:39 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 564C3209589FB; Thu, 3 Aug 2017 02:24:22 -0700 (PDT) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (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 346BC209589C8 for ; Thu, 3 Aug 2017 02:24:21 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Aug 2017 02:26:32 -0700 Received: from zwei4-mobl.ccr.corp.intel.com ([10.239.196.57]) by orsmga004.jf.intel.com with ESMTP; 03 Aug 2017 02:26:31 -0700 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,315,1498546800"; d="scan'208";a="115100168" From: zwei4 To: edk2-devel@lists.01.org Date: Thu, 3 Aug 2017 17:26:26 +0800 Message-Id: <20170803092626.8896-1-david.wei@intel.com> X-Mailer: git-send-email 2.11.0.windows.1 Subject: [edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Enable source level debug. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: zwei4 --- Platform/BroxtonPlatformPkg/BuildBios.bat | 2 +- .../PlatformDsc/Components.IA32.dsc | 3 +++ .../BroxtonPlatformPkg/PlatformDsc/Components.dsc | 4 ++++ Platform/BroxtonPlatformPkg/PlatformDsc/Defines.dsc | 5 +++++ .../PlatformDsc/LibraryClasses.DxeCore.dsc | 6 ++++++ .../PlatformDsc/LibraryClasses.DxeRuntimeDriver.dsc | 6 ++++++ .../PlatformDsc/LibraryClasses.DxeSmmDriver.dsc | 2 ++ .../PlatformDsc/LibraryClasses.IA32.PEI.dsc | 6 +++++- .../PlatformDsc/LibraryClasses.SmmCore.dsc | 5 +++++ .../BroxtonPlatformPkg/PlatformDsc/LibraryClasses.dsc | 19 ++++++---------= ---- .../PlatformDsc/PcdsFixedAtBuild.dsc | 8 +++++++- Platform/BroxtonPlatformPkg/PlatformPkg.fdf | 8 ++++++++ Platform/BroxtonPlatformPkg/PlatformPkgIA32.dsc | 6 ++++++ Platform/BroxtonPlatformPkg/PlatformPkgX64.dsc | 6 ++++++ Platform/BroxtonPlatformPkg/PlatformPkgX64Gcc.dsc | 6 ++++++ .../BroxtonSoC/BroxtonSiPkg/Library/GpioLib/GpioLib.c | 4 ++-- .../BroxtonSiPkg/Txe/Library/HeciMsgLib/HeciMsgLib.c | 4 ++-- 17 files changed, 80 insertions(+), 20 deletions(-) diff --git a/Platform/BroxtonPlatformPkg/BuildBios.bat b/Platform/BroxtonPl= atformPkg/BuildBios.bat index 2ecc28d6b..7aca17650 100644 --- a/Platform/BroxtonPlatformPkg/BuildBios.bat +++ b/Platform/BroxtonPlatformPkg/BuildBios.bat @@ -204,7 +204,7 @@ copy /y nul %Build_Macros% >nul =20 ::output platform specific build macros to DefineAtBuildMacros.dsc echo DEFINE ENBDT_PF_BUILD =3D %ENBDT_PF_BUILD% >> %Buil= d_Macros% -echo DEFINE SOURCE_DEBUG_ENABLE =3D %SrcDebug% >> %Buil= d_Macros% + echo DEFINE APLK_SETUP_ENABLE_BUILD =3D %APLK_SETUP_ENABLE_BUILD% >> %Buil= d_Macros% =20 if "%Arch%"=3D=3D"IA32" ( diff --git a/Platform/BroxtonPlatformPkg/PlatformDsc/Components.IA32.dsc b/= Platform/BroxtonPlatformPkg/PlatformDsc/Components.IA32.dsc index bfc45ff2f..1341e082b 100644 --- a/Platform/BroxtonPlatformPkg/PlatformDsc/Components.IA32.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformDsc/Components.IA32.dsc @@ -201,3 +201,6 @@ $(PLATFORM_PACKAGE_COMMON)/FpdtPei/FpdtPei.inf !endif =20 +!if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE + SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.inf +!endif \ No newline at end of file diff --git a/Platform/BroxtonPlatformPkg/PlatformDsc/Components.dsc b/Platf= orm/BroxtonPlatformPkg/PlatformDsc/Components.dsc index 234c27708..04f616c36 100644 --- a/Platform/BroxtonPlatformPkg/PlatformDsc/Components.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformDsc/Components.dsc @@ -32,6 +32,10 @@ PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf } =20 +!if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE + SourceLevelDebugPkg/DebugAgentDxe/DebugAgentDxe.inf +!endif + UefiCpuPkg/CpuDxe/CpuDxe.inf { CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf diff --git a/Platform/BroxtonPlatformPkg/PlatformDsc/Defines.dsc b/Platform= /BroxtonPlatformPkg/PlatformDsc/Defines.dsc index 842acf308..69641ced3 100644 --- a/Platform/BroxtonPlatformPkg/PlatformDsc/Defines.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformDsc/Defines.dsc @@ -163,3 +163,8 @@ DEFINE FSP_RAM_CODE_SIZE =3D $(FSP_IBBM_SIZE) DEFINE CAR_REGION_SIZE =3D 0x100000 =20 +!if $(TARGET) =3D=3D DEBUG + DEFINE SOURCE_DEBUG_ENABLE =3D TRUE +!else=20 + DEFINE SOURCE_DEBUG_ENABLE =3D FALSE +!endif \ No newline at end of file diff --git a/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.DxeCore= .dsc b/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.DxeCore.dsc index 5ae62d3dc..d60c900e7 100644 --- a/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.DxeCore.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.DxeCore.dsc @@ -30,4 +30,10 @@ TimerLib|$(PLATFORM_PACKAGE_COMMON)/Library/PlatformTscTimerLib/Dx= eTscTimerLib.inf !endif !endif +=20 +!if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE + DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf +!else + DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.i= nf +!endif =20 diff --git a/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.DxeRunt= imeDriver.dsc b/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.DxeR= untimeDriver.dsc index 75c07b151..9e13b6ff2 100644 --- a/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.DxeRuntimeDriv= er.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.DxeRuntimeDriv= er.dsc @@ -19,3 +19,9 @@ BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf !endif =20 + !if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE + DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.= inf + !else + DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull= .inf + !endif + diff --git a/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.DxeSmmD= river.dsc b/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.DxeSmmDr= iver.dsc index 5a2feaaa3..643cbd0a5 100644 --- a/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.DxeSmmDriver.d= sc +++ b/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.DxeSmmDriver.d= sc @@ -23,6 +23,8 @@ =20 !if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib= .inf + !else=20 + DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNul= l.inf !endif =20 !if $(SECURE_BOOT_ENABLE) =3D=3D TRUE diff --git a/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.IA32.PE= I.dsc b/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.IA32.PEI.dsc index 2b004019d..d4617aa42 100644 --- a/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.IA32.PEI.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.IA32.PEI.dsc @@ -43,7 +43,11 @@ BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf SerialPortLib|$(PLATFORM_PACKAGE_COMMON)/Library/BaseSerialPortLib/BaseS= erialPortLib.inf !if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE - SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPor= tLib16550.inf + DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib= .inf=20 + +!else + DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.i= nf + !endif =20 DebugLib|$(PLATFORM_PACKAGE_COMMON)/Library/PeiDebugLib/PeiDebugLib.inf diff --git a/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.SmmCore= .dsc b/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.SmmCore.dsc index f04345efd..e9edfff3d 100644 --- a/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.SmmCore.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.SmmCore.dsc @@ -27,3 +27,8 @@ PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceL= ibNull.inf !endif =20 + !if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE + DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.= inf + !else + DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull= .inf + !endif diff --git a/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.dsc b/P= latform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.dsc index b3fb10a81..a1023764e 100644 --- a/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformDsc/LibraryClasses.dsc @@ -22,7 +22,7 @@ UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntr= yPoint.inf UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/Uefi= ApplicationEntryPoint.inf DxeSmmDriverEntryPoint|IntelFrameworkPkg/Library/DxeSmmDriverEntryPoint= /DxeSmmDriverEntryPoint.inf - PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePe= CoffExtraActionLibNull.inf + !if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLi= bDebug/PeCoffExtraActionLibDebug.inf DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunication= LibSerialPort/DebugCommunicationLibSerialPort.inf @@ -30,6 +30,7 @@ !else PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/Bas= ePeCoffExtraActionLibNull.inf !endif + DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.= inf =20 # # Common @@ -187,8 +188,6 @@ SerialPortLib|$(PLATFORM_PACKAGE_COMMON)/Library/BaseSerialPortLib/Ba= seSerialPortLibNoInit.inf !endif =20 - DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.= inf - PchSerialIoUartLib|$(PLATFORM_SI_PACKAGE)/SouthCluster/Library/PeiDxeSm= mPchSerialIoUartLib/PeiDxeSmmPchSerialIoUartLib.inf PchSerialIoLib|$(PLATFORM_SI_PACKAGE)/SouthCluster/Library/PeiDxeSmmPch= SerialIoLib/PeiDxeSmmPchSerialIoLib.inf SerialPortParameterLib|$(PLATFORM_PACKAGE_COMMON)/Library/BaseSerialPor= tParameterLibCmos/BaseSerialPortParameterLibCmos.inf @@ -208,12 +207,10 @@ !endif TcgPpVendorLib|SecurityPkg/Library/TcgPpVendorLibNull/TcgPpVendorLibN= ull.inf =20 - !if ($(FTPM_ENABLE) =3D=3D TRUE) - Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf - Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRo= uterDxe.inf - PttPtpLib|$(PLATFORM_SI_PACKAGE)/Txe/Library/PeiDxePttPtpLib/PeiDxePt= tPtpLib.inf - Tcg2PhysicalPresenceLib|SecurityPkg/Library/DxeTcg2PhysicalPresenceLi= b/DxeTcg2PhysicalPresenceLib.inf - !endif + Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf + Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRout= erDxe.inf + PttPtpLib|$(PLATFORM_SI_PACKAGE)/Txe/Library/PeiDxePttPtpLib/PeiDxePttP= tpLib.inf + Tcg2PhysicalPresenceLib|SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/= DxeTcg2PhysicalPresenceLib.inf TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasur= ementLib.inf BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf @@ -230,10 +227,6 @@ ScDxeRuntimePciLibPciExpress|$(PLATFORM_SI_PACKAGE)/SouthCluster/Librar= y/DxeRuntimePciLibPciExpress/DxeRuntimePciLibPciExpress.inf TcgPhysicalPresenceLib|SecurityPkg/Library/DxeTcgPhysicalPresenceLib/Dx= eTcgPhysicalPresenceLib.inf =20 - !if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE - SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialP= ortLib16550.inf - !endif - LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf EfiRegTableLib|$(PLATFORM_PACKAGE_COMMON)/Library/EfiRegTableLib/EfiReg= TableLib.inf =20 diff --git a/Platform/BroxtonPlatformPkg/PlatformDsc/PcdsFixedAtBuild.dsc b= /Platform/BroxtonPlatformPkg/PlatformDsc/PcdsFixedAtBuild.dsc index de883285d..793e285ae 100644 --- a/Platform/BroxtonPlatformPkg/PlatformDsc/PcdsFixedAtBuild.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformDsc/PcdsFixedAtBuild.dsc @@ -1,7 +1,7 @@ ## @file # Platform Fixed At Build Pcd Description. # -# Copyright (c) 2016, Intel Corporation. All rights reserved.
+# Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.
# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the B= SD License @@ -80,3 +80,9 @@ gClientCommonModuleTokenSpaceGuid.PcdStatusCodeFlagsCmosIndex|0x5C gEfiBxtTokenSpaceGuid.PcdPmcGcrBaseAddress|0xFE043000 =20 + !if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE + gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17 + gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07 + gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|FALSE + !endif + diff --git a/Platform/BroxtonPlatformPkg/PlatformPkg.fdf b/Platform/Broxton= PlatformPkg/PlatformPkg.fdf index eeb0985d9..d267d0eef 100644 --- a/Platform/BroxtonPlatformPkg/PlatformPkg.fdf +++ b/Platform/BroxtonPlatformPkg/PlatformPkg.fdf @@ -235,6 +235,10 @@ READ_LOCK_STATUS =3D TRUE FvNameGuid =3D B73FE497-B92E-416e-8326-45AD0D270092 =20 +!if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE + INF SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.inf +!endif + INF $(PLATFORM_PACKAGE_COMMON)/SampleCode/IntelFsp2WrapperPkg/FspsWrappe= rPeim/FspsWrapperPeim.inf =20 INF $(PLATFORM_PACKAGE_COMMON)/PlatformSettings/PlatformPostMemPei/Platf= ormPostMemPei.inf @@ -387,6 +391,10 @@ APRIORI DXE { INF MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/Firmware= PerformanceDxe.inf !endif =20 +!if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE +# INF SourceLevelDebugPkg/DebugAgentDxe/DebugAgentDxe.inf +!endif + INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatu= sCodeRouterRuntimeDxe.inf INF $(PLATFORM_PACKAGE_COMMON)/Console/PlatformStatusCodeHandler/Runtime= Dxe/PlatformStatusCodeHandlerRuntimeDxe.inf diff --git a/Platform/BroxtonPlatformPkg/PlatformPkgIA32.dsc b/Platform/Bro= xtonPlatformPkg/PlatformPkgIA32.dsc index 6109a76c7..3513e1bd5 100644 --- a/Platform/BroxtonPlatformPkg/PlatformPkgIA32.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformPkgIA32.dsc @@ -119,6 +119,12 @@ PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLi= b.inf TimerLib|$(PLATFORM_PACKAGE_COMMON)/Library/PlatformTscTimerLib/DxeTsc= TimerLib.inf !endif + =20 + !if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE + DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.= inf + !else + DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull= .inf + !endif =20 [LibraryClasses.Common.DXE_CORE] !include $(PLATFORM_NAME)/PlatformDsc/LibraryClasses.DxeCore.dsc diff --git a/Platform/BroxtonPlatformPkg/PlatformPkgX64.dsc b/Platform/Brox= tonPlatformPkg/PlatformPkgX64.dsc index cdd91b354..103bce9a4 100644 --- a/Platform/BroxtonPlatformPkg/PlatformPkgX64.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformPkgX64.dsc @@ -119,6 +119,12 @@ PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLi= b.inf TimerLib|$(PLATFORM_PACKAGE_COMMON)/Library/PlatformTscTimerLib/DxeTsc= TimerLib.inf !endif + =20 + !if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE + DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.= inf + !else + DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull= .inf + !endif =20 [LibraryClasses.Common.DXE_CORE] !include $(PLATFORM_NAME)/PlatformDsc/LibraryClasses.DxeCore.dsc diff --git a/Platform/BroxtonPlatformPkg/PlatformPkgX64Gcc.dsc b/Platform/B= roxtonPlatformPkg/PlatformPkgX64Gcc.dsc index 42f068a38..bab962bbf 100644 --- a/Platform/BroxtonPlatformPkg/PlatformPkgX64Gcc.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformPkgX64Gcc.dsc @@ -119,6 +119,12 @@ PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLi= b.inf TimerLib|$(PLATFORM_PACKAGE_COMMON)/Library/PlatformTscTimerLib/DxeTsc= TimerLib.inf !endif + =20 + !if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE + DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.= inf + !else + DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull= .inf + !endif =20 [LibraryClasses.Common.DXE_CORE] !include PlatformDsc/LibraryClasses.DxeCore.dsc diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/GpioLib/GpioLib.c b/Si= licon/BroxtonSoC/BroxtonSiPkg/Library/GpioLib/GpioLib.c index 01ac0fa66..5ca7c0bf6 100644 --- a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/GpioLib/GpioLib.c +++ b/Silicon/BroxtonSoC/BroxtonSiPkg/Library/GpioLib/GpioLib.c @@ -306,9 +306,9 @@ ConfigureDirectIrqWakeEvent ( // program Event Trigger Mapping // d64 =3D (LShiftU64 ((UINT64) GpioRead (Community, EVMAP_0 + 4), 32)) | G= pioRead (Community, EVMAP_0); - d64 |=3D LShiftU64 ((UINT64) Index / EVENT_MUX_SIZE, ((Index % EVENT_MUX= _SIZE) << 2)); + d64 |=3D LShiftU64 ((UINT64) (Index / EVENT_MUX_SIZE), ((Index % EVENT_M= UX_SIZE) << 2)); GpioWrite (Community, EVMAP_0, (UINT32) (d64 & 0xFFFFFFFF)); - GpioWrite (Community, EVMAP_0 + 4, (UINT32) (d64 >> 32)); + GpioWrite (Community, EVMAP_0 + 4, (UINT32) RShiftU64(d64, 32)); =20 // // program Event Trigger Output Enable diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/Txe/Library/HeciMsgLib/HeciMsg= Lib.c b/Silicon/BroxtonSoC/BroxtonSiPkg/Txe/Library/HeciMsgLib/HeciMsgLib.c index 075c760cc..66c7115fe 100644 --- a/Silicon/BroxtonSoC/BroxtonSiPkg/Txe/Library/HeciMsgLib/HeciMsgLib.c +++ b/Silicon/BroxtonSoC/BroxtonSiPkg/Txe/Library/HeciMsgLib/HeciMsgLib.c @@ -291,7 +291,7 @@ HeciWriteNVMFile ( SendNVMWrite->Size =3D (UINT32) DataSize; SendNVMWrite->Truncate =3D (Truncate) ? 1 : 0; SendNVMWrite->SrcAddressLower =3D (UINT32) (UINTN) TempBuffer; - SendNVMWrite->SrcAddressUpper =3D (UINT32) ((PHYSICAL_ADDRESS) (UINTN) T= empBuffer >> 32); + SendNVMWrite->SrcAddressUpper =3D (UINT32) RShiftU64 ((PHYSICAL_ADDRESS)= (UINTN) TempBuffer, 32); DEBUG ((EFI_D_INFO, "TempBuffer: 0x%x \n", TempBuffer)); =20 DEBUG ((EFI_D_INFO, "WRITE_TO_RPMB_STORAGE_CMD_REQ_DATA size if %x\n", s= izeof(WRITE_TO_RPMB_STORAGE_CMD_REQ_DATA))); @@ -383,7 +383,7 @@ HeciReadNVMFile( SendNVMRead->Offset =3D Offset; SendNVMRead->Size =3D (UINT16)*DataSize; SendNVMRead->DstAddressLower =3D (UINT32) (UINTN) TempBuffer; - SendNVMRead->DstAddressUpper =3D (UINT32) ((PHYSICAL_ADDRESS) (UINTN) Te= mpBuffer >> 32);; + SendNVMRead->DstAddressUpper =3D (UINT32) RShiftU64 ((PHYSICAL_ADDRESS) = (UINTN) TempBuffer, 32); DEBUG((EFI_D_INFO, "TempBuffer: 0x%x \n", TempBuffer)); =20 DEBUG ((EFI_D_INFO, "READ_FROM_RPMB_STORAGE_CMD_REQ_DATA size if %x\n", = sizeof (READ_FROM_RPMB_STORAGE_CMD_REQ_DATA))); --=20 2.11.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel