From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from loongson.cn (loongson.cn [114.242.206.163]) by mx.groups.io with SMTP id smtpd.web09.3746.1668160213006422569 for ; Fri, 11 Nov 2022 01:50:15 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: loongson.cn, ip: 114.242.206.163, mailfrom: lichao@loongson.cn) Received: from loongson.cn (unknown [10.40.24.149]) by gateway (Coremail) with SMTP id _____8DxPdnSGm5j1xYGAA--.19013S3; Fri, 11 Nov 2022 17:50:10 +0800 (CST) Received: from lichao-PC (unknown [10.40.24.149]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx9VbRGm5jV9QQAA--.27635S2; Fri, 11 Nov 2022 17:50:09 +0800 (CST) Date: Fri, 11 Nov 2022 17:50:09 +0800 From: "Chao Li" To: xianglai li Cc: "=?utf-8?Q?devel=40edk2.groups.io?=" , Bibo Mao , Leif Lindholm , Liming Gao , Michael D Kinney Message-ID: <966EA108-5C70-4466-AE8C-7DB421E53599@getmailspring.com> In-Reply-To: References: Subject: Re: [edk2-platforms][PATCH V5 14/15] Platform/Loongson: Support Dxe X-Mailer: Mailspring MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Dx9VbRGm5jV9QQAA--.27635S2 X-CM-SenderInfo: xolfxt3r6o00pqjv00gofq/1tbiAQAHCGNs6eQZ0AArsu X-Coremail-Antispam: 1Uk129KBjvAXoWDAryruFW7uw48Gw43Zr4xZwb_yoWrAF4DGo Z7JF1Utr45tr1kJ3yUKFnxtry7Zw4avrs0qr18Zw1kAF4Utr12yrWDtwnrWr1DAFn8Ar1D G3y5A3y8JrW7twn7n29KB7ZKAUJUUUUD529EdanIXcx71UUUUU7KY7ZEXasCq-sGcSsGvf J3Ec02F40Eb7x2x7xS6r1j6r4UMc02F40EFcxC0VAKzVAqx4xG6I80ewAqx4xG64kEw2xG 04xIwI0_Xr0_WrUv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUO67kC6x804xWl14 x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWU JVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14 v26F1j6w1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIE 14v26F4UJVW0owA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Cr1j6rxdM2kKe7AKxVWUAVWUtw AS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc02F40Eb7x2 x7xS6r1j6r4UMc02F40EFcxC0VAKzVAqx4xG6I80ewAqx4xG64kEw2xG04xIwI0_Xr0_Wr 1lYx0E2Ix0cI8IcVAFwI0_Wrv_ZF1lYx0Ex4A2jsIE14v26F4j6r4UJwAm72CE4IkC6x0Y z7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l7480Y4vEI4kI2Ix0rVAqx4xJMxkF7I0En4kS14 v26r126r1DMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8C rVAFwI0_JrI_JrWlx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtw CIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26F1j6w1UMIIF0xvE2Ix0cI8IcVCY1x02 67AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Cr 0_Gr1UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jw Xo7UUUUU= Content-Type: multipart/alternative; boundary="636e1ad1_7821d6ad_1e57b" --636e1ad1_7821d6ad_1e57b Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Reviewed-by: Chao Li Thanks, Chao -------- On 11=E6=9C=88 11 2022, at 5:12 =E4=B8=8B=E5=8D=88, xianglai li wrote: > Support Dxe for LoogArch. > > > > RE=46: https://bugzilla.tianocore.org/show=5Fbug.cgi=3Fid=3D4054 > > > Cc: Bibo Mao > Cc: Chao Li > Cc: Leif Lindholm > Cc: Liming Gao > Cc: Michael D Kinney > Signed-off-by: xianglai li > --- > .../Loongson/LoongArchQemuPkg/Loongson.dec =7C 13 + > .../Loongson/LoongArchQemuPkg/Loongson.dsc =7C 421 ++++++++++++++++++ > .../Loongson/LoongArchQemuPkg/Loongson.fdf =7C 245 ++++++++++ > .../LoongArchQemuPkg/Loongson.fdf.inc =7C 42 ++ > 4 files changed, 721 insertions(+) > > > diff --git a/Platform/Loongson/LoongArchQemuPkg/Loongson.dec b/Platform= /Loongson/LoongArchQemuPkg/Loongson.dec > index aeae75a678..54a50738ec 100644 > --- a/Platform/Loongson/LoongArchQemuPkg/Loongson.dec > +++ b/Platform/Loongson/LoongArchQemuPkg/Loongson.dec > =40=40 -27,13 +27,21 =40=40 > > > =5BGuids=5D > gLoongArchQemuPkgTokenSpaceGuid =3D =7B 0x0e0383ce, 0x0151, 0x4d01, =7B= 0x80, 0x0e, 0x3f, 0xef, 0x8b, 0x27, 0x6d, 0x52 =7D =7D > + gEfiLoongsonBootparamsTableGuid =3D =7B 0x4660f721, 0x2ec5, 0x416a, =7B= 0x89, 0x9a, 0x43, 0x18, 0x02, 0x50, 0xa0, 0xc9 =7D =7D > + > +=5BProtocols=5D > > > =23=23 In the Pcds=46ixedAtBuild and PcdsDynamic areas, numbers start a= t 0x0. > =5BPcds=46ixedAtBuild, PcdsDynamic=5D > gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashPei=46vBase=7C0x0=7CUINT64=7C= 0x00000000 > gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashPei=46vSize=7C0x0=7CUINT32=7C= 0x00000001 > + gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashDxe=46vOffset=7C0x0=7CUINT6= 4=7C0x00000002 > gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashDxe=46vBase=7C0x0=7CUINT64=7C= 0x00000003 > gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashDxe=46vSize=7C0x0=7CUINT32=7C= 0x00000004 > + gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashSecModuleBase=7C0x0=7CUINT6= 4=7C0x00000005 > + gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashSecModuleSize=7C0x0=7CUINT3= 2=7C0x00000006 > + gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashEventLogBase=7C0x0=7CUINT64= =7C0x00000007 > + gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashEventLogSize=7C0x0=7CUINT32= =7C0x00000008 > gLoongArchQemuPkgTokenSpaceGuid.PcdDeviceTreeBase=7C0x0=7CUINT64=7C0x00= 000009 > gLoongArchQemuPkgTokenSpaceGuid.PcdDeviceTreePadding=7C256=7CUINT32=7C0= x0000000a > > > =40=40 -48,6 +56,8 =40=40 > =5BPcds=46ixedAtBuild.LOONGARCH64=5D > gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize=7C32=7CUINT8=7C0x00010000= > gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize=7C0=7CUINT8=7C0x00010001 > + gLoongArchQemuPkgTokenSpaceGuid.PcdDeviceSpaceStartAddress=7C0x100000= 00=7CUINT32=7C0x00010002 > + gLoongArchQemuPkgTokenSpaceGuid.PcdDeviceSpaceLength=7C0x80000000=7CU= INT32=7C0x00010003 > > > =23=23 In the PcdsDynamic area, numbers start at 0x20000. > =5BPcdsDynamic=5D > =40=40 -59,3 +69,6 =40=40 > gLoongArchQemuPkgTokenSpaceGuid.PcdInvalidPud=7C0x0=7CUINT64=7C0x000200= 05 > gLoongArchQemuPkgTokenSpaceGuid.PcdInvalidPmd=7C0x0=7CUINT64=7C0x000200= 06 > gLoongArchQemuPkgTokenSpaceGuid.PcdInvalidPte=7C0x0=7CUINT64=7C0x000200= 07 > + > +=23=23 In the Pcds=46eature=46lag area, numbers start at 0x30000. > +=5BPcds=46eature=46lag=5D > diff --git a/Platform/Loongson/LoongArchQemuPkg/Loongson.dsc b/Platform= /Loongson/LoongArchQemuPkg/Loongson.dsc > index b78a7e3b49..6f71280c4d 100644 > --- a/Platform/Loongson/LoongArchQemuPkg/Loongson.dsc > +++ b/Platform/Loongson/LoongArchQemuPkg/Loongson.dsc > =40=40 -24,6 +24,25 =40=40 > =46LASH=5FDE=46INITION =3D Platform/Loongson/LoongArchQemuPkg/Loongson.= fdf > TTY=5FTERMINAL =3D =46ALSE > > > + =23 > + =23 Defines for default states. These can be changed on the command l= ine. > + =23 -D =46LAG=3DVALUE > + DE=46INE TTY=5FTERMINAL =3D =46ALSE > + DE=46INE SECURE=5FBOOT=5FENABLE =3D =46ALSE > + DE=46INE TPM2=5FENABLE =3D =46ALSE > + DE=46INE TPM2=5FCON=46IG=5FENABLE =3D =46ALSE > + > + =23 > + =23 Network definition > + =23 > + DE=46INE NETWORK=5FIP6=5FENABLE =3D =46ALSE > + DE=46INE NETWORK=5FHTTP=5FBOOT=5FENABLE =3D =46ALSE > + DE=46INE NETWORK=5FSNP=5FENABLE =3D =46ALSE > + DE=46INE NETWORK=5FTLS=5FENABLE =3D =46ALSE > + DE=46INE NETWORK=5FALLOW=5FHTTP=5FCONNECTIONS =3D TRUE > + DE=46INE NETWORK=5FISCSI=5FENABLE =3D =46ALSE > + > +=21include NetworkPkg/NetworkDefines.dsc.inc > =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23 > =23 > =23 Defines for default states. These can be changed on the command lin= e. > =40=40 -37,6 +56,8 =40=40 > =23 > GCC:*=5F*=5F*=5FCC=5F=46LAGS =3D -D DISABLE=5FNEW=5FDEPRECATED=5FINTER=46= ACES > > > +=21include NetworkPkg/NetworkBuildOptions.dsc.inc > + > =5BBuildOptions.LOONGARCH64.EDKII.SEC=5D > *=5F*=5F*=5FCC=5F=46LAGS =3D > > > =40=40 -46,6 +67,14 =40=40 > =5BBuildOptions.common.EDKII.DXE=5FRUNTIME=5FDRIVER=5D > GCC:*=5F*=5FLOONGARCH64=5FDLINK=5F=46LAGS =3D -z common-page-size=3D0x1= 0000 > > > +=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23 > +=23 > +=23 SKU Identification section - list of all SKU IDs supported by this= Platform. > +=23 > +=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23 > +=5BSkuIds=5D > + 0=7CDE=46AULT > + > =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23 > =23 > =23 Library Class section - list of all Library Classes needed by this = Platform. > =40=40 -59,19 +88,93 =40=40 > TimerLib =7C Platform/Loongson/LoongArchQemuPkg/Library/StableTimerLib/= TimerLib.inf > PrintLib =7C MdePkg/Library/BasePrintLib/BasePrintLib.inf > BaseMemoryLib =7C MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf > + > + =23 Networking Requirements > +=21include NetworkPkg/NetworkLibs.dsc.inc > +=21if =24(NETWORK=5FTLS=5FENABLE) =3D=3D TRUE > + TlsLib=7CCryptoPkg/Library/TlsLib/TlsLib.inf > +=21endif > + > BaseLib =7C MdePkg/Library/BaseLib/BaseLib.inf > + SafeIntLib =7C MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf > + TimeBaseLib =7C EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf > + BmpSupportLib =7C MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSuppo= rtLib.inf > + SynchronizationLib =7C MdePkg/Library/BaseSynchronizationLib/BaseSync= hronizationLib.inf > + CpuLib =7C MdePkg/Library/BaseCpuLib/BaseCpuLib.inf > PerformanceLib =7C MdePkg/Library/BasePerformanceLibNull/BasePerformanc= eLibNull.inf > PeCoffLib =7C MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf > CacheMaintenanceLib =7C MdePkg/Library/BaseCacheMaintenanceLib/BaseCach= eMaintenanceLib.inf > UefiDecompressLib =7C MdePkg/Library/BaseUefiDecompressLib/BaseUefiDeco= mpressLib.inf > + UefiHiiServicesLib =7C MdeModulePkg/Library/UefiHiiServicesLib/UefiHi= iServicesLib.inf > + HiiLib =7C MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf > + CapsuleLib =7C MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNu= ll.inf > + DxeServicesLib =7C MdePkg/Library/DxeServicesLib/DxeServicesLib.inf > + DxeServicesTableLib =7C MdePkg/Library/DxeServicesTableLib/DxeService= sTableLib.inf > PeCoffGetEntryPointLib =7C MdePkg/Library/BasePeCoffGetEntryPointLib/Ba= sePeCoffGetEntryPointLib.inf > + PciLib =7C MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.i= nf > + PciExpressLib =7C OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachin= gPciExpressLib.inf > + PciCapLib =7C OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf > + PciCapPciSegmentLib =7C OvmfPkg/Library/BasePciCapPciSegmentLib/BaseP= ciCapPciSegmentLib.inf > + PciCapPciIoLib =7C OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIo= Lib.inf > + DxeHardwareInfoLib =7C OvmfPkg/Library/HardwareInfoLib/DxeHardwareInf= oLib.inf > IoLib =7C MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf > SerialPortLib =7C Platform/Loongson/LoongArchQemuPkg/Library/SerialPort= Lib/SerialPortLib.inf > + EfiResetSystemLib =7C Platform/Loongson/LoongArchQemuPkg/Library/Rese= tSystemAcpiLib/BaseResetSystemAcpiGedLib.inf > + ResetSystemLib =7C Platform/Loongson/LoongArchQemuPkg/Library/ResetSy= stemAcpiLib/BaseResetSystemAcpiGedLib.inf > + > + UefiLib =7C MdePkg/Library/UefiLib/UefiLib.inf > + UefiBootServicesTableLib =7C MdePkg/Library/UefiBootServicesTableLib/= UefiBootServicesTableLib.inf > + UefiRuntimeServicesTableLib =7C MdePkg/Library/UefiRuntimeServicesTab= leLib/UefiRuntimeServicesTableLib.inf > + UefiDriverEntryPoint =7C MdePkg/Library/UefiDriverEntryPoint/UefiDriv= erEntryPoint.inf > + UefiApplicationEntryPoint =7C MdePkg/Library/UefiApplicationEntryPoin= t/UefiApplicationEntryPoint.inf > + DevicePathLib =7C MdePkg/Library/UefiDevicePathLibDevicePathProtocol/= UefiDevicePathLibDevicePathProtocol.inf > + =46ileHandleLib =7C MdePkg/Library/Uefi=46ileHandleLib/Uefi=46ileHand= leLib.inf > + SecurityManagementLib =7C MdeModulePkg/Library/DxeSecurityManagementL= ib/DxeSecurityManagementLib.inf > + UefiUsbLib =7C MdePkg/Library/UefiUsbLib/UefiUsbLib.inf > + SerializeVariablesLib =7C OvmfPkg/Library/SerializeVariablesLib/Seria= lizeVariablesLib.inf > + CustomizedDisplayLib =7C MdeModulePkg/Library/CustomizedDisplayLib/Cu= stomizedDisplayLib.inf > DebugPrintErrorLevelLib =7C MdePkg/Library/BaseDebugPrintErrorLevelLib/= BaseDebugPrintErrorLevelLib.inf > + TpmMeasurementLib =7C MdeModulePkg/Library/TpmMeasurementLibNull/TpmM= easurementLibNull.inf > + AuthVariableLib =7C MdeModulePkg/Library/AuthVariableLibNull/AuthVari= ableLibNull.inf > + VarCheckLib =7C MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf > + VariablePolicyLib =7C MdeModulePkg/Library/VariablePolicyLib/Variable= PolicyLib.inf > + VariablePolicyHelperLib =7C MdeModulePkg/Library/VariablePolicyHelper= Lib/VariablePolicyHelperLib.inf > + SortLib =7C MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf > =46dtLib =7C EmbeddedPkg/Library/=46dtLib/=46dtLib.inf > + PciPcdProducerLib =7C OvmfPkg/=46dt/=46dtPciPcdProducerLib/=46dtPciPc= dProducerLib.inf > + PciSegmentLib =7C MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentL= ibPci.inf > + PciHostBridgeLib =7C OvmfPkg/=46dt/=46dtPciHostBridgeLib/=46dtPciHost= BridgeLib.inf > + PciHostBridgeUtilityLib =7C OvmfPkg/Library/PciHostBridgeUtilityLib/P= ciHostBridgeUtilityLib.inf > + MmuLib =7C Platform/Loongson/LoongArchQemuPkg/Library/MmuLib/MmuBaseL= ib.inf > + =46ileExplorerLib =7C MdeModulePkg/Library/=46ileExplorerLib/=46ileEx= plorerLib.inf > + > +=21if =24(HTTP=5FBOOT=5FENABLE) =3D=3D TRUE > + HttpLib =7C MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf > +=21endif > + UefiBootManagerLib =7C MdeModulePkg/Library/UefiBootManagerLib/UefiBo= otManagerLib.inf > + OrderedCollectionLib =7C MdePkg/Library/BaseOrderedCollectionRedBlack= TreeLib/BaseOrderedCollectionRedBlackTreeLib.inf > + ReportStatusCodeLib =7C MdePkg/Library/BaseReportStatusCodeLibNull/Ba= seReportStatusCodeLibNull.inf > + > + PeCoffGetEntryPointLib =7C MdePkg/Library/BasePeCoffGetEntryPointLib/= BasePeCoffGetEntryPointLib.inf > PeCoffExtraActionLib =7C MdePkg/Library/BasePeCoffExtraActionLibNull/Ba= sePeCoffExtraActionLibNull.inf > DebugAgentLib =7C MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibN= ull.inf > + CpuExceptionHandlerLib =7C MdeModulePkg/Library/CpuExceptionHandlerLi= bNull/CpuExceptionHandlerLibNull.inf > + > + PlatformBootManagerLib =7C Platform/Loongson/LoongArchQemuPkg/Library= /PlatformBootManagerLib/PlatformBootManagerLib.inf > + BootLogoLib =7C MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf > + QemuBootOrderLib =7C OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLi= b.inf > + Qemu=46wCfgSimpleParserLib =7C OvmfPkg/Library/Qemu=46wCfgSimpleParse= rLib/Qemu=46wCfgSimpleParserLib.inf > + QemuLoadImageLib =7C OvmfPkg/Library/GenericQemuLoadImageLib/GenericQ= emuLoadImageLib.inf > + > + =23 > + =23 Virtio Support > + =23 > + VirtioLib =7C OvmfPkg/Library/VirtioLib/VirtioLib.inf > + =46rameBufferBltLib =7C MdeModulePkg/Library/=46rameBufferBltLib/=46r= ameBufferBltLib.inf > + Qemu=46wCfgLib =7C OvmfPkg/Library/Qemu=46wCfgLib/Qemu=46wCfgLibMmio.= inf > + DebugLib =7C MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerial= Port.inf > PeiServicesLib =7C MdePkg/Library/PeiServicesLib/PeiServicesLib.inf > + Variable=46lashInfoLib =7C MdeModulePkg/Library/BaseVariable=46lashIn= foLib/BaseVariable=46lashInfoLib.inf > > > =5BLibraryClasses.common.SEC=5D > ReportStatusCodeLib =7C MdeModulePkg/Library/PeiReportStatusCodeLib/Pei= ReportStatusCodeLib.inf > =40=40 -104,17 +207,88 =40=40 > Qemu=46wCfgLib =7C Platform/Loongson/LoongArchQemuPkg/Library/Qemu=46wC= fgLib/Qemu=46wCfgPeiLib.inf > MmuLib =7C Platform/Loongson/LoongArchQemuPkg/Library/MmuLib/MmuBaseLib= Pei.inf > > > +=5BLibraryClasses.common.DXE=5FCORE=5D > + HobLib =7C MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf > + DxeCoreEntryPoint =7C MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPo= int.inf > + MemoryAllocationLib =7C MdeModulePkg/Library/DxeCoreMemoryAllocationL= ib/DxeCoreMemoryAllocationLib.inf > + ReportStatusCodeLib =7C MdeModulePkg/Library/DxeReportStatusCodeLib/D= xeReportStatusCodeLib.inf > + > +=5BLibraryClasses.common.DXE=5FRUNTIME=5FDRIVER=5D > + PcdLib =7C MdePkg/Library/DxePcdLib/DxePcdLib.inf > + HobLib =7C MdePkg/Library/DxeHobLib/DxeHobLib.inf > + DxeCoreEntryPoint =7C MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPo= int.inf > + MemoryAllocationLib =7C MdePkg/Library/UefiMemoryAllocationLib/UefiMe= moryAllocationLib.inf > + ReportStatusCodeLib =7C MdeModulePkg/Library/RuntimeDxeReportStatusCo= deLib/RuntimeDxeReportStatusCodeLib.inf > + UefiRuntimeLib =7C MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf > + ExtractGuidedSectionLib =7C MdePkg/Library/PeiExtractGuidedSectionLib= /PeiExtractGuidedSectionLib.inf > + Qemu=46wCfgS3Lib =7C OvmfPkg/Library/Qemu=46wCfgS3Lib/DxeQemu=46wCfgS= 3Lib=46wCfg.inf > + RealTimeClockLib =7C Platform/Loongson/LoongArchQemuPkg/Library/LsRea= lTimeClockLib/LsRealTimeClockLib.inf > + VariablePolicyLib =7C MdeModulePkg/Library/VariablePolicyLib/Variable= PolicyLibRuntimeDxe.inf > + Qemu=46wCfgLib =7C Platform/Loongson/LoongArchQemuPkg/Library/Qemu=46= wCfgLib/Qemu=46wCfgPeiLib.inf > + EfiResetSystemLib =7C Platform/Loongson/LoongArchQemuPkg/Library/Rese= tSystemAcpiLib/DxeResetSystemAcpiGedLib.inf > + ResetSystemLib =7C Platform/Loongson/LoongArchQemuPkg/Library/ResetSy= stemAcpiLib/DxeResetSystemAcpiGedLib.inf > +=21if =24(TARGET) =21=3D RELEASE > + DebugLib =7C MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDe= bugLibSerialPort.inf > +=21endif > + > +=5BLibraryClasses.common.UE=46I=5FDRIVER=5D > + PcdLib =7C MdePkg/Library/DxePcdLib/DxePcdLib.inf > + HobLib =7C MdePkg/Library/DxeHobLib/DxeHobLib.inf > + DxeCoreEntryPoint =7C MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPo= int.inf > + MemoryAllocationLib =7C MdePkg/Library/UefiMemoryAllocationLib/UefiMe= moryAllocationLib.inf > + ReportStatusCodeLib =7C MdeModulePkg/Library/DxeReportStatusCodeLib/D= xeReportStatusCodeLib.inf > + UefiScsiLib =7C MdePkg/Library/UefiScsiLib/UefiScsiLib.inf > + ExtractGuidedSectionLib =7C MdePkg/Library/PeiExtractGuidedSectionLib= /PeiExtractGuidedSectionLib.inf > + Qemu=46wCfgLib =7C OvmfPkg/Library/Qemu=46wCfgLib/Qemu=46wCfgLibMmio.= inf > + > +=5BLibraryClasses.common.DXE=5FDRIVER=5D > + PcdLib =7C MdePkg/Library/DxePcdLib/DxePcdLib.inf > + HobLib =7C MdePkg/Library/DxeHobLib/DxeHobLib.inf > + MemoryAllocationLib =7C MdePkg/Library/UefiMemoryAllocationLib/UefiMe= moryAllocationLib.inf > + ReportStatusCodeLib =7C MdeModulePkg/Library/DxeReportStatusCodeLib/D= xeReportStatusCodeLib.inf > + UefiScsiLib =7C MdePkg/Library/UefiScsiLib/UefiScsiLib.inf > + CpuExceptionHandlerLib =7C UefiCpuPkg/Library/CpuExceptionHandlerLib/= DxeCpuExceptionHandlerLib.inf > + ExtractGuidedSectionLib =7C MdePkg/Library/DxeExtractGuidedSectionLib= /DxeExtractGuidedSectionLib.inf > + Qemu=46wCfgS3Lib =7C OvmfPkg/Library/Qemu=46wCfgS3Lib/DxeQemu=46wCfgS= 3Lib=46wCfg.inf > + Qemu=46wCfgLib =7C OvmfPkg/Library/Qemu=46wCfgLib/Qemu=46wCfgLibMmio.= inf > + > +=5BLibraryClasses.common.UE=46I=5FAPPLICATION=5D > + PcdLib =7C MdePkg/Library/DxePcdLib/DxePcdLib.inf > + HobLib =7C MdePkg/Library/DxeHobLib/DxeHobLib.inf > + MemoryAllocationLib =7C MdePkg/Library/UefiMemoryAllocationLib/UefiMe= moryAllocationLib.inf > + ExtractGuidedSectionLib =7C MdePkg/Library/DxeExtractGuidedSectionLib= /DxeExtractGuidedSectionLib.inf > + > =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23 > =23 > =23 Pcd Section - list of all EDK II PCD Entries defined by this Platfo= rm. > =23 > =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23 > +=5BPcds=46eature=46lag=5D > + gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport =7C =46ALSE > +=23 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial =7C TRUE > +=23 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory =7C TRUE > + gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress =7C TRU= E > + gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport =7C TRUE > + gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport =7C =46ALSE > + gEfiMdeModulePkgTokenSpaceGuid.PcdPciBusHotplugDeviceSupport =7C =46A= LSE > + gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation =7C TRUE > + gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation =7C TRUE > =5BPcds=46ixedAtBuild=5D > =23=23 BaseLib =23=23 > gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength =7C 1000000 > gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength =7C 1000000 > gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength =7C 1000000 > + gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout =7C 10000000 > > > + gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize =7C 1 > + gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange = =7C =46ALSE > + gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler =7C 0x10 > + gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize =7C 0x2000 > + gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize =7C 0x= 8000 > + gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress =7C 0x0 > + gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize =7C 48 > + gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize =7C 32 > + gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask =7C 0x07 > gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel =7C 0x8000004=46 > =23 DEBUG=5FINIT 0x00000001 // Initialization > =23 DEBUG=5FWARN 0x00000002 // Warnings > =40=40 -158,6 +332,60 =40=40 > =23 0x90000000 - 0xA0000000 > =23 > gLoongArchQemuPkgTokenSpaceGuid.PcdUefiRamTop =7C 0x10000000 > + gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions =7C 0x06 > + > + gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenu=46ile =7C =7B 0x21,= 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, = 0x66, 0x23, 0x31 =7D > + > + =23 > + =23 Network Pcds > + =23 > +=21include NetworkPkg/NetworkPcds.dsc.inc > +=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23 > +=23 > +=23 Pcd Dynamic Section - list of all EDK II PCD Entries defined by th= is Platform > +=23 > +=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23 > +=5BPcdsDynamicDefault=5D > + gEfiMdeModulePkgTokenSpaceGuid.Pcd=46lashNvStorage=46twSpareBase =7C = 0 > + gEfiMdeModulePkgTokenSpaceGuid.Pcd=46lashNvStorage=46twSpareBase64 =7C= 0 > + gEfiMdeModulePkgTokenSpaceGuid.Pcd=46lashNvStorageVariableBase64 =7C = 0 > + gEfiMdeModulePkgTokenSpaceGuid.Pcd=46lashNvStorage=46twWorkingBase =7C= 0 > + gEfiMdeModulePkgTokenSpaceGuid.Pcd=46lashNvStorage=46twWorkingBase64 = =7C 0 > + gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved =7C 0 > + gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration =7C =46ALS= E > + gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution =7C 800 > + gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution =7C 600 > + gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut =7C 2 > + > + =23 Set video resolution for text setup. > + gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution =7C = 640 > + gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution =7C 48= 0 > + > + gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion =7C 0x0300 > + gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev =7C 0x0 > + > + gLoongArchQemuPkgTokenSpaceGuid.PcdRamSize =7C 0x40000000 > + > + =23=23 If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI > + =23 enumeration to complete before installing ACPI tables. > + gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration =7CTRUE > + gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation =7C0x0 > + =23 set PcdPciExpressBaseAddress to MAX=5FUINT64, which signifies tha= t this > + =23 PCD and PcdPciDisableBusEnumeration above have not been assigned = yet > + gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress =7C0x=46=46=46=46=46= =46=46=46=46=46=46=46=46=46=46=46 > + > + =23 > + =23 IPv4 and IPv6 PXE Boot support. > + =23 > + gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport =7C 0x01 > + gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport =7C 0x01 > + > + =23 > + =23 SMBIOS entry point version > + =23 > + gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion=7C0x0300 > + gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev=7C0x0 > + gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated=7CTRUE > > > =5BComponents=5D > > > =40=40 -184,3 +412,196 =40=40 > > PcdLib=7CMdePkg/Library/PeiPcdLib/PeiPcdLib.inf > =7D > + > + =23 > + =23 DXE Phase modules > + =23 > + MdeModulePkg/Core/Dxe/DxeMain.inf =7B > + > + NULL =7C MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecom= pressLib.inf > + DevicePathLib =7C MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.= inf > + ExtractGuidedSectionLib =7C MdePkg/Library/DxeExtractGuidedSectionLib= /DxeExtractGuidedSectionLib.inf > + =7D > + > + MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatus= CodeRouterRuntimeDxe.inf > + MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandler= RuntimeDxe.inf > + MdeModulePkg/Universal/PCD/Dxe/Pcd.inf =7B > + > + PcdLib=7CMdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf > + =7D > + > + MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf > + Platform/Loongson/LoongArchQemuPkg/Drivers/CpuDxe/CpuDxe.inf > + MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf > + MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRun= timeDxe.inf > + MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf > + MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf > + Platform/Loongson/LoongArchQemuPkg/Drivers/StableTimerDxe/TimerDxe.in= f > + MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.in= f > + MdeModulePkg/Universal/Metronome/Metronome.inf > + EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf > + > + =23 > + =23 Variable > + =23 > + > + OvmfPkg/EmuVariable=46vbRuntimeDxe/=46vb.inf =7B > + > + Platform=46vbLib=7COvmfPkg/Library/EmuVariable=46vbLib/EmuVariable=46= vbLib.inf > + =7D > + MdeModulePkg/Universal/=46aultTolerantWriteDxe/=46aultTolerantWriteDx= e.inf > + MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf =7B= > + > + NULL=7CMdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf > + BaseMemoryLib=7CMdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf > + =7D > + > + =23 > + =23 Platform Driver > + =23 > + OvmfPkg/VirtioBlkDxe/VirtioBlk.inf > + OvmfPkg/VirtioScsiDxe/VirtioScsi.inf > + OvmfPkg/VirtioRngDxe/VirtioRng.inf > + > + =23 > + =23 =46ile system > + =23 > + MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf > + MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf > + MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.in= f > + =46atPkg/Enhanced=46atDxe/=46at.inf > + MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf > + OvmfPkg/Virtio=46sDxe/Virtio=46sDxe.inf > + > + =23 > + =23BDS > + =23 > + MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf =7B > + > + DevicePathLib =7C MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.= inf > + PcdLib =7C MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf > + =7D > + MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf > + MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf > + MdeModulePkg/Universal/BdsDxe/BdsDxe.inf > + MdeModulePkg/Logo/LogoDxe.inf > + MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf > + MdeModulePkg/Application/UiApp/UiApp.inf =7B > + > + NULL=7CMdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf= > + NULL=7CMdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf > + NULL=7CMdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenan= ceManagerUiLib.inf > + =7D > + > + OvmfPkg/QemuKernelLoader=46sDxe/QemuKernelLoader=46sDxe.inf =7B > + > + NULL=7COvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf > + =7D > + > + =23 > + =23 Network Support > + =23 > +=23=21include NetworkPkg/NetworkComponents.dsc.inc > + > +=23 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf =7B > +=23 > +=23 NULL=7COvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf= > +=23 =7D > + > +=21if =24(NETWORK=5FTLS=5FENABLE) =3D=3D TRUE > + NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf =7B > + > + NULL=7COvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf > + =7D > +=21endif > + OvmfPkg/VirtioNetDxe/VirtioNet.inf > + > + =23 > + =23 IDE/SCSI > + =23 > + OvmfPkg/SataControllerDxe/SataControllerDxe.inf > + MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf > + MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf > + MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf > + MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf > + > + =23 > + =23 SMBIOS Support > + =23 > + MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf =7B > + > + NULL =7C OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf > + =7D > + OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf > + > + =23 > + =23 PCI > + =23 > + Platform/Loongson/LoongArchQemuPkg/Drivers/PciCpuIo2Dxe/PciCpuIo2Dxe.= inf > + EmbeddedPkg/Drivers/=46dtClientDxe/=46dtClientDxe.inf > + MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf > + MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf > + OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf > + OvmfPkg/Virtio10Dxe/Virtio10.inf > + > + =23 > + =23 Console > + =23 > + MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf > + MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf > + MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf > + MdeModulePkg/Universal/PrintDxe/PrintDxe.inf > + MdeModulePkg/Universal/SerialDxe/SerialDxe.inf > + MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.= inf =7B > + > + PcdLib=7CMdePkg/Library/DxePcdLib/DxePcdLib.inf > + =7D > + > + =23 > + =23 Video > + =23 > + OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf > + OvmfPkg/VirtioGpuDxe/VirtioGpu.inf > + OvmfPkg/PlatformDxe/Platform.inf > + > + =23 > + =23 Usb Support > + =23 > + MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf > + MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf > + MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf > + MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf > + MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf > + MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf > + > + =23 > + =23 ACPI Support > + =23 > + MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf > + MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphics= ResourceTableDxe.inf > + OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf > + > + =23 > + =23app > + =23 > + ShellPkg/Application/Shell/Shell.inf =7B > + > + ShellCommandLib=7CShellPkg/Library/UefiShellCommandLib/UefiShellComma= ndLib.inf > + NULL=7CShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2Com= mandsLib.inf > + NULL=7CShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1Com= mandsLib.inf > + NULL=7CShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3Com= mandsLib.inf > + NULL=7CShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1C= ommandsLib.inf > + NULL=7CShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1Com= mandsLib.inf > + NULL=7CShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall= 1CommandsLib.inf > + NULL=7CShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork= 1CommandsLib.inf > + HandleParsingLib=7CShellPkg/Library/UefiHandleParsingLib/UefiHandlePa= rsingLib.inf > + ShellLib=7CShellPkg/Library/UefiShellLib/UefiShellLib.inf > + =46ileHandleLib=7CMdePkg/Library/Uefi=46ileHandleLib/Uefi=46ileHandle= Lib.inf > + SortLib=7CMdeModulePkg/Library/UefiSortLib/UefiSortLib.inf > + PrintLib=7CMdePkg/Library/BasePrintLib/BasePrintLib.inf > + BcfgCommandLib=7CShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBc= fgCommandLib.inf > + > + gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask=7C0x=46=46 > + gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize=7C=46ALSE > + gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize=7C8000 > + =7D > diff --git a/Platform/Loongson/LoongArchQemuPkg/Loongson.fdf b/Platform= /Loongson/LoongArchQemuPkg/Loongson.fdf > index 8e257f2392..34bcdf0d9c 100644 > --- a/Platform/Loongson/LoongArchQemuPkg/Loongson.fdf > +++ b/Platform/Loongson/LoongArchQemuPkg/Loongson.fdf > =40=40 -22,6 +22,14 =40=40 =24(SEC=46V=5FO=46=46SET)=7C=24(SEC=46V=5FSI= ZE) > gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashSec=46vBase=7CgLoongArchQemuP= kgTokenSpaceGuid.Pcd=46lashSec=46vSize > =46V =3D SEC=46V > > > +=24(PEI=46V=5FO=46=46SET)=7C=24(PEI=46V=5FSIZE) > +gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashPei=46vBase=7CgLoongArchQemu= PkgTokenSpaceGuid.Pcd=46lashPei=46vSize > +=46V =3D PEI=46V > + > +=24(DXE=46V=5FO=46=46SET)=7C=24(DXE=46V=5FSIZE) > +gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashDxe=46vBase=7CgLoongArchQemu= PkgTokenSpaceGuid.Pcd=46lashDxe=46vSize > +=46V =3D =46VMAIN=5FCOMPACT > + > =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23 > =5B=46V.SEC=46V=5D > =46vNameGuid =3D 587d4265-5e71-41da-9c35-4258551f1e22 > =40=40 -79,6 +87,181 =40=40 IN=46 MdeModulePkg/Universal/PCD/Pei/Pcd.in= f > IN=46 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf > IN=46 Platform/Loongson/LoongArchQemuPkg/PlatformPei/PlatformPei.inf > > > +=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23 > +=5B=46V.DXE=46V=5D > +=46vNameGuid =3D 5d19a5b3-130f-459b-a292-9270a9e6bc62 > +BlockSize =3D =24(BLOCK=5FSIZE) > +=46vAlignment =3D 16 > +ERASE=5FPOLARITY =3D 1 > +MEMORY=5FMAPPED =3D TRUE > +STICKY=5FWRITE =3D TRUE > +LOCK=5FCAP =3D TRUE > +LOCK=5FSTATUS =3D TRUE > +READ=5FDISABLED=5FCAP =3D TRUE > +READ=5FENABLED=5FCAP =3D TRUE > +READ=5FSTATUS =3D TRUE > +READ=5FLOCK=5FCAP =3D TRUE > +READ=5FLOCK=5FSTATUS =3D TRUE > +WRITE=5FDISABLED=5FCAP =3D TRUE > +WRITE=5FENABLED=5FCAP =3D TRUE > +WRITE=5FSTATUS =3D TRUE > +WRITE=5FLOCK=5FCAP =3D TRUE > +WRITE=5FLOCK=5FSTATUS =3D TRUE > + > +APRIORI DXE =7B > + IN=46 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf > + IN=46 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf > +=7D > + > +=23 > +=23 DXE Phase modules > +=23 > +IN=46 MdeModulePkg/Core/Dxe/DxeMain.inf > + > +IN=46 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportS= tatusCodeRouterRuntimeDxe.inf > +IN=46 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHa= ndlerRuntimeDxe.inf > +IN=46 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf > +IN=46 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf > +IN=46 Platform/Loongson/LoongArchQemuPkg/Drivers/CpuDxe/CpuDxe.inf > +IN=46 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf > +IN=46 Platform/Loongson/LoongArchQemuPkg/Drivers/StableTimerDxe/TimerD= xe.inf > +IN=46 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeD= xe.inf > +IN=46 MdeModulePkg/Universal/Metronome/Metronome.inf > +IN=46 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf > +IN=46 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCount= erRuntimeDxe.inf > +IN=46 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf > +IN=46 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf > + > +=23 > +=23 Variable > +=23 > +IN=46 OvmfPkg/EmuVariable=46vbRuntimeDxe/=46vb.inf > +IN=46 MdeModulePkg/Universal/=46aultTolerantWriteDxe/=46aultTolerantWr= iteDxe.inf > +IN=46 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.in= f > +=23 > +=23 PCI > +=23 > +IN=46 Platform/Loongson/LoongArchQemuPkg/Drivers/PciCpuIo2Dxe/PciCpuIo= 2Dxe.inf > +IN=46 EmbeddedPkg/Drivers/=46dtClientDxe/=46dtClientDxe.inf > +IN=46 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf > +IN=46 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf > +IN=46 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf > +IN=46 OvmfPkg/Virtio10Dxe/Virtio10.inf > + > +=23 > +=23 Platform Driver > +=23 > +IN=46 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf > +IN=46 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf > +IN=46 OvmfPkg/VirtioRngDxe/VirtioRng.inf > +IN=46 OvmfPkg/VirtioNetDxe/VirtioNet.inf > + > +=23 > +=23 Console > +=23 > +IN=46 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf= > +IN=46 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf= > +IN=46 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf > +IN=46 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf > +IN=46 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf > +IN=46 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsol= eDxe.inf > + > +=23 > +=23Video > +=23 > +IN=46 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf > +IN=46 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf > +IN=46 OvmfPkg/PlatformDxe/Platform.inf > + > +=23 > +=23 IDE > +=23 > +IN=46 OvmfPkg/SataControllerDxe/SataControllerDxe.inf > +IN=46 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf > +IN=46 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf > +IN=46 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf > +IN=46 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf > + > +=23 > +=23 Usb Support > +=23 > +IN=46 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf > +IN=46 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf > +IN=46 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf > +IN=46 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf > +IN=46 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf > +IN=46 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf > + > +=23 > +=23BDS > +=23 > +IN=46 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf > +IN=46 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf > +IN=46 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf > +IN=46 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf > +IN=46 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf > +IN=46 MdeModulePkg/Logo/LogoDxe.inf > +IN=46 MdeModulePkg/Application/UiApp/UiApp.inf > +IN=46 OvmfPkg/QemuKernelLoader=46sDxe/QemuKernelLoader=46sDxe.inf > + > +=23 > +=23Smbios > +=23 > +IN=46 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf > +IN=46 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf > + > +=23 > +=23Acpi > +=23 > +IN=46 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf > +IN=46 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGra= phicsResourceTableDxe.inf > +IN=46 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf > + > +=23 > +=23 Network modules > +=23=21include NetworkPkg/Network.fdf.inc > + > +=23 > +=23 =46ile system > +=23 > +IN=46 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf > +IN=46 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf > +IN=46 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishD= xe.inf > +IN=46 =46atPkg/Enhanced=46atDxe/=46at.inf > +IN=46 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf > +IN=46 OvmfPkg/Virtio=46sDxe/Virtio=46sDxe.inf > + > +=23 > +=23Boot OS > +=23 > +IN=46 ShellPkg/Application/Shell/Shell.inf > + > +=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23 > +=5B=46V.=46VMAIN=5FCOMPACT=5D > +=46vNameGuid =3D af8c3fe8-9ce8-4548-884a-e3f4dd91f040 > +=46vAlignment =3D 16 > +ERASE=5FPOLARITY =3D 1 > +MEMORY=5FMAPPED =3D TRUE > +STICKY=5FWRITE =3D TRUE > +LOCK=5FCAP =3D TRUE > +LOCK=5FSTATUS =3D TRUE > +WRITE=5FDISABLED=5FCAP =3D TRUE > +WRITE=5FENABLED=5FCAP =3D TRUE > +WRITE=5FSTATUS =3D TRUE > +WRITE=5FLOCK=5FCAP =3D TRUE > +WRITE=5FLOCK=5FSTATUS =3D TRUE > +READ=5FDISABLED=5FCAP =3D TRUE > +READ=5FENABLED=5FCAP =3D TRUE > +READ=5FSTATUS =3D TRUE > +READ=5FLOCK=5FCAP =3D TRUE > +READ=5FLOCK=5FSTATUS =3D TRUE > + > +=46ILE =46V=5FIMAGE =3D 9E21=46D93-9C72-4c15-8C4B-E77=461DB2D792 =7B > + SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403C=46 PROCESSING=5FRE= QUIRED =3D TRUE =7B > + SECTION =46V=5FIMAGE =3D DXE=46V > + =7D > + =7D > + > =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23 > =5BRule.Common.SEC=5D > =46ILE SEC =3D =24(NAMED=5FGUID) =7B > =40=40 -102,3 +285,65 =40=40 IN=46 Platform/Loongson/LoongArchQemuPkg/P= latformPei/PlatformPei.inf > =7D > > > =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23 > +=5BRule.Common.DXE=5FCORE=5D > + =46ILE DXE=5FCORE =3D =24(NAMED=5FGUID) =7B > + PE32 PE32 =24(IN=46=5FOUTPUT)/=24(MODULE=5FNAME).efi > + UI STRING=3D=22=24(MODULE=5FNAME)=22 Optional > + =7D > + > +=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23 > +=5BRule.Common.DXE=5FDRIVER=5D > + =46ILE DRIVER =3D =24(NAMED=5FGUID) =7B > + DXE=5FDEPEX DXE=5FDEPEX Optional =24(IN=46=5FOUTPUT)/=24(MODULE=5FNAM= E).depex > + PE32 PE32 =24(IN=46=5FOUTPUT)/=24(MODULE=5FNAME).efi > + UI STRING=3D=22=24(MODULE=5FNAME)=22 Optional > + RAW ACPI Optional =7C.acpi > + RAW ASL Optional =7C.aml > + =7D > + > +=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23 > +=5BRule.Common.DXE=5FRUNTIME=5FDRIVER=5D > + =46ILE DRIVER =3D =24(NAMED=5FGUID) =7B > + DXE=5FDEPEX DXE=5FDEPEX Optional =24(IN=46=5FOUTPUT)/=24(MODULE=5FNAM= E).depex > + PE32 PE32 =24(IN=46=5FOUTPUT)/=24(MODULE=5FNAME).efi > + UI STRING=3D=22=24(MODULE=5FNAME)=22 Optional > + =7D > + > +=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23 > +=5BRule.Common.UE=46I=5FDRIVER=5D > + =46ILE DRIVER =3D =24(NAMED=5FGUID) =7B > + DXE=5FDEPEX DXE=5FDEPEX Optional =24(IN=46=5FOUTPUT)/=24(MODULE=5FNAM= E).depex > + PE32 PE32 =24(IN=46=5FOUTPUT)/=24(MODULE=5FNAME).efi > + UI STRING=3D=22=24(MODULE=5FNAME)=22 Optional > + =7D > + > +=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23 > +=5BRule.Common.UE=46I=5FDRIVER.BINARY=5D > + =46ILE DRIVER =3D =24(NAMED=5FGUID) =7B > + DXE=5FDEPEX DXE=5FDEPEX Optional =7C.depex > + PE32 PE32 =7C.efi > + UI STRING=3D=22=24(MODULE=5FNAME)=22 Optional > + VERSION STRING=3D=22=24(IN=46=5FVERSION)=22 Optional BUILD=5FNUM=3D=24= (BUILD=5FNUMBER) > + =7D > + > +=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23 > +=5BRule.Common.UE=46I=5FAPPLICATION=5D > + =46ILE APPLICATION =3D =24(NAMED=5FGUID) =7B > + PE32 PE32 =24(IN=46=5FOUTPUT)/=24(MODULE=5FNAME).efi > + UI STRING=3D=22=24(MODULE=5FNAME)=22 Optional > + =7D > + > +=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23 > +=5BRule.Common.UE=46I=5FAPPLICATION.BINARY=5D > + =46ILE APPLICATION =3D =24(NAMED=5FGUID) =7B > + PE32 PE32 =7C.efi > + UI STRING=3D=22=24(MODULE=5FNAME)=22 Optional > + VERSION STRING=3D=22=24(IN=46=5FVERSION)=22 Optional BUILD=5FNUM=3D=24= (BUILD=5FNUMBER) > + =7D > + > +=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23 > +=5BRule.Common.USER=5FDE=46INED.ACPITABLE=5D > + =46ILE =46REE=46ORM =3D =24(NAMED=5FGUID) =7B > + RAW ACPI =7C.acpi > + RAW ASL =7C.aml > + =7D > diff --git a/Platform/Loongson/LoongArchQemuPkg/Loongson.fdf.inc b/Plat= form/Loongson/LoongArchQemuPkg/Loongson.fdf.inc > index 6f17909748..3530f90c67 100644 > --- a/Platform/Loongson/LoongArchQemuPkg/Loongson.fdf.inc > +++ b/Platform/Loongson/LoongArchQemuPkg/Loongson.fdf.inc > =40=40 -19,3 +19,45 =40=40 DE=46INE =46D=5FSIZE =3D 0x400000 > =23Set Sec base address and size in flash > DE=46INE SEC=46V=5FO=46=46SET =3D 0x00000000 > DE=46INE SEC=46V=5FSIZE =3D 0x00010000 > + > +=23Set Pei base address and size in flash > +DE=46INE PEI=46V=5FO=46=46SET =3D 0x00010000 > +DE=46INE PEI=46V=5FSIZE =3D 0x00040000 > + > +=23Set Dxe base address and size in flash > +DE=46INE DXE=46V=5FO=46=46SET =3D 0x00050000 > +DE=46INE DXE=46V=5FSIZE =3D 0x00350000 > + > +=23Set Var base address and size in flash > +DE=46INE VARIABLE=5FO=46=46SET =3D 0x003a0000 > +DE=46INE VAR=5FALL=5FSIZE =3D 0x60000 > + > +=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23 > +=23Set Var =46lash layout > +DE=46INE VARIABLE=5FSIZE =3D 0x00010000 > +DE=46INE VAR=5FALL=5FBLOCKS =3D 0x60 > + > +DE=46INE RESERVE1=5FO=46=46SET =3D =24(VARIABLE=5FO=46=46SET) + =24(VA= RIABLE=5FSIZE) > +DE=46INE RESERVE1=5FSIZE =3D 0xB000 > + > +DE=46INE RESERVE2=5FO=46=46SET =3D =24(RESERVE1=5FO=46=46SET) + =24(RE= SERVE1=5FSIZE) > +DE=46INE RESERVE2=5FSIZE =3D 0x14000 > + > +DE=46INE SPARE=5FO=46=46SET =3D =24(RESERVE2=5FO=46=46SET) + =24(RESER= VE2=5FSIZE) > +DE=46INE SPARE=5FSIZE =3D 0x20000 > + > +DE=46INE =46WTWORKING=5FO=46=46SET =3D =24(SPARE=5FO=46=46SET) + =24(S= PARE=5FSIZE) > +DE=46INE =46WTWORKING=5FSIZE =3D 0x8000 > + > +DE=46INE EVENT=5FLOG=5FO=46=46SET =3D =24(=46WTWORKING=5FO=46=46SET) += =24(=46WTWORKING=5FSIZE) > +DE=46INE EVENT=5FLOG=5FSIZE =3D 0x8000 > + > +=23 Set Variable > +SET gEfiMdeModulePkgTokenSpaceGuid.Pcd=46lashNvStorageVariableBase64 =3D= 0 > +SET gEfiMdeModulePkgTokenSpaceGuid.Pcd=46lashNvStorageVariableSize =3D= =24(VARIABLE=5FSIZE) > + > +=23 Set =46twSpare > +SET gEfiMdeModulePkgTokenSpaceGuid.Pcd=46lashNvStorage=46twSpareSize =3D= =24(SPARE=5FSIZE) > + > +=23 Set =46twWorking > +SET gEfiMdeModulePkgTokenSpaceGuid.Pcd=46lashNvStorage=46twWorkingSize= =3D =24(=46WTWORKING=5FSIZE) > -- > 2.31.1 --636e1ad1_7821d6ad_1e57b Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Reviewed-by: Chao Li  <lichao=40loongson.cn>


Thanks,
Chao
--------

On 11=E6=9C=88 11 2= 022, at 5:12 =E4=B8=8B=E5=8D=88, xianglai li <lixianglai=40loongson.cn= > wrote:
Support Dxe for LoogArch.


RE=46: https://bugzilla.tianocore.org/show=5Fbug.cgi=3Fid=3D= 4054



Cc: Bibo Mao <maobibo=40loongson.cn>
Cc: Chao Li <lichao=40loongson.cn>

Cc: Lei= f Lindholm <quic=5Fllindhol=40quicinc.com>

Cc: Liming= Gao <gaoliming=40byosoft.com.cn>

Cc: Michael D Kinne= y <michael.d.kinney=40intel.com>

Signed-off-by: xiang= lai li <lixianglai=40loongson.cn>

---

.= ../Loongson/LoongArchQemuPkg/Loongson.dec =7C 13 +

.../Loon= gson/LoongArchQemuPkg/Loongson.dsc =7C 421 ++++++++++++++++++

.../Loongson/LoongArchQemuPkg/Loongson.fdf =7C 245 ++++++++++
.../LoongArchQemuPkg/Loongson.fdf.inc =7C 42 ++

4 fil= es changed, 721 insertions(+)



diff --git a/Platform= /Loongson/LoongArchQemuPkg/Loongson.dec b/Platform/Loongson/LoongArchQemu= Pkg/Loongson.dec

index aeae75a678..54a50738ec 100644
<= br>
--- a/Platform/Loongson/LoongArchQemuPkg/Loongson.dec

+++ b/Platform/Loongson/LoongArchQemuPkg/Loongson.dec

=40= =40 -27,13 +27,21 =40=40



=5BGuids=5D

= gLoongArchQemuPkgTokenSpaceGuid =3D =7B 0x0e0383ce, 0x0151, 0x4d01, =7B 0= x80, 0x0e, 0x3f, 0xef, 0x8b, 0x27, 0x6d, 0x52 =7D =7D

+ gEf= iLoongsonBootparamsTableGuid =3D =7B 0x4660f721, 0x2ec5, 0x416a, =7B 0x89= , 0x9a, 0x43, 0x18, 0x02, 0x50, 0xa0, 0xc9 =7D =7D

+
<= br>
+=5BProtocols=5D



=23=23 In the Pcds=46ixedA= tBuild and PcdsDynamic areas, numbers start at 0x0.

=5BPcds= =46ixedAtBuild, PcdsDynamic=5D

gLoongArchQemuPkgTokenSpaceG= uid.Pcd=46lashPei=46vBase=7C0x0=7CUINT64=7C0x00000000

gLoon= gArchQemuPkgTokenSpaceGuid.Pcd=46lashPei=46vSize=7C0x0=7CUINT32=7C0x00000= 001

+ gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashDxe=46vOffs= et=7C0x0=7CUINT64=7C0x00000002

gLoongArchQemuPkgTokenSpaceG= uid.Pcd=46lashDxe=46vBase=7C0x0=7CUINT64=7C0x00000003

gLoon= gArchQemuPkgTokenSpaceGuid.Pcd=46lashDxe=46vSize=7C0x0=7CUINT32=7C0x00000= 004

+ gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashSecModuleBa= se=7C0x0=7CUINT64=7C0x00000005

+ gLoongArchQemuPkgTokenSpac= eGuid.Pcd=46lashSecModuleSize=7C0x0=7CUINT32=7C0x00000006

+= gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashEventLogBase=7C0x0=7CUINT64=7C= 0x00000007

+ gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashEven= tLogSize=7C0x0=7CUINT32=7C0x00000008

gLoongArchQemuPkgToken= SpaceGuid.PcdDeviceTreeBase=7C0x0=7CUINT64=7C0x00000009

gLo= ongArchQemuPkgTokenSpaceGuid.PcdDeviceTreePadding=7C256=7CUINT32=7C0x0000= 000a



=40=40 -48,6 +56,8 =40=40

=5BPcd= s=46ixedAtBuild.LOONGARCH64=5D

gEmbeddedTokenSpaceGuid.PcdP= rePiCpuMemorySize=7C32=7CUINT8=7C0x00010000

gEmbeddedTokenS= paceGuid.PcdPrePiCpuIoSize=7C0=7CUINT8=7C0x00010001

+ gLoon= gArchQemuPkgTokenSpaceGuid.PcdDeviceSpaceStartAddress=7C0x10000000=7CUINT= 32=7C0x00010002

+ gLoongArchQemuPkgTokenSpaceGuid.PcdDevice= SpaceLength=7C0x80000000=7CUINT32=7C0x00010003



=23=23= In the PcdsDynamic area, numbers start at 0x20000.

=5BPcds= Dynamic=5D

=40=40 -59,3 +69,6 =40=40

gLoongAr= chQemuPkgTokenSpaceGuid.PcdInvalidPud=7C0x0=7CUINT64=7C0x00020005
gLoongArchQemuPkgTokenSpaceGuid.PcdInvalidPmd=7C0x0=7CUINT64=7C0x0= 0020006

gLoongArchQemuPkgTokenSpaceGuid.PcdInvalidPte=7C0x0= =7CUINT64=7C0x00020007

+

+=23=23 In the Pcds=46= eature=46lag area, numbers start at 0x30000.

+=5BPcds=46eat= ure=46lag=5D

diff --git a/Platform/Loongson/LoongArchQemuPk= g/Loongson.dsc b/Platform/Loongson/LoongArchQemuPkg/Loongson.dsc
index b78a7e3b49..6f71280c4d 100644

--- a/Platform/Lo= ongson/LoongArchQemuPkg/Loongson.dsc

+++ b/Platform/Loongso= n/LoongArchQemuPkg/Loongson.dsc

=40=40 -24,6 +24,25 =40=40<= /div>
=46LASH=5FDE=46INITION =3D Platform/Loongson/LoongArchQemuP= kg/Loongson.fdf

TTY=5FTERMINAL =3D =46ALSE


+ =23

+ =23 Defines for default states. These can be = changed on the command line.

+ =23 -D =46LAG=3DVALUE
<= br>
+ DE=46INE TTY=5FTERMINAL =3D =46ALSE

+ DE=46INE SE= CURE=5FBOOT=5FENABLE =3D =46ALSE

+ DE=46INE TPM2=5FENABLE =3D= =46ALSE

+ DE=46INE TPM2=5FCON=46IG=5FENABLE =3D =46ALSE
+

+ =23

+ =23 Network definition<= /div>
+ =23

+ DE=46INE NETWORK=5FIP6=5FENABLE =3D =46= ALSE

+ DE=46INE NETWORK=5FHTTP=5FBOOT=5FENABLE =3D =46ALSE<= /div>
+ DE=46INE NETWORK=5FSNP=5FENABLE =3D =46ALSE

+ DE=46INE NETWORK=5FTLS=5FENABLE =3D =46ALSE

+ DE=46INE N= ETWORK=5FALLOW=5FHTTP=5FCONNECTIONS =3D TRUE

+ DE=46INE NET= WORK=5FISCSI=5FENABLE =3D =46ALSE

+

+=21inclu= de NetworkPkg/NetworkDefines.dsc.inc

=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23

=23<= /div>
=23 Defines for default states. These can be changed on the= command line.

=40=40 -37,6 +56,8 =40=40

=23<= /div>
GCC:*=5F*=5F*=5FCC=5F=46LAGS =3D -D DISABLE=5FNEW=5FDEPRECA= TED=5FINTER=46ACES



+=21include NetworkPkg/NetworkBu= ildOptions.dsc.inc

+

=5BBuildOptions.LOONGARC= H64.EDKII.SEC=5D

*=5F*=5F*=5FCC=5F=46LAGS =3D


=
=40=40 -46,6 +67,14 =40=40

=5BBuildOptions.common.= EDKII.DXE=5FRUNTIME=5FDRIVER=5D

GCC:*=5F*=5FLOONGARCH64=5FD= LINK=5F=46LAGS =3D -z common-page-size=3D0x10000



+=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23

+=23

+=23 SKU Identification sec= tion - list of all SKU IDs supported by this Platform.

+=23=

+=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23

+=5BSkuIds=5D

+ 0=7CDE=46AULT

+

=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23
<= br>
=23

=23 Library Class section - list of all Library= Classes needed by this Platform.

=40=40 -59,19 +88,93 =40=40=

TimerLib =7C Platform/Loongson/LoongArchQemuPkg/Library/St= ableTimerLib/TimerLib.inf

PrintLib =7C MdePkg/Library/BaseP= rintLib/BasePrintLib.inf

BaseMemoryLib =7C MdePkg/Library/B= aseMemoryLib/BaseMemoryLib.inf

+

+ =23 Networ= king Requirements

+=21include NetworkPkg/NetworkLibs.dsc.in= c

+=21if =24(NETWORK=5FTLS=5FENABLE) =3D=3D TRUE

<= div>+ TlsLib=7CCryptoPkg/Library/TlsLib/TlsLib.inf

+=21endi= f

+

BaseLib =7C MdePkg/Library/BaseLib/BaseLi= b.inf

+ SafeIntLib =7C MdePkg/Library/BaseSafeIntLib/BaseSa= feIntLib.inf

+ TimeBaseLib =7C EmbeddedPkg/Library/TimeBase= Lib/TimeBaseLib.inf

+ BmpSupportLib =7C MdeModulePkg/Librar= y/BaseBmpSupportLib/BaseBmpSupportLib.inf

+ Synchronization= Lib =7C MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf<= /div>
+ CpuLib =7C MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
=
PerformanceLib =7C MdePkg/Library/BasePerformanceLibNull/BasePer= formanceLibNull.inf

PeCoffLib =7C MdePkg/Library/BasePeCoff= Lib/BasePeCoffLib.inf

CacheMaintenanceLib =7C MdePkg/Librar= y/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf

UefiD= ecompressLib =7C MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressL= ib.inf

+ UefiHiiServicesLib =7C MdeModulePkg/Library/UefiHi= iServicesLib/UefiHiiServicesLib.inf

+ HiiLib =7C MdeModuleP= kg/Library/UefiHiiLib/UefiHiiLib.inf

+ CapsuleLib =7C MdeMo= dulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf

+ D= xeServicesLib =7C MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
<= br>
+ DxeServicesTableLib =7C MdePkg/Library/DxeServicesTableLib/DxeS= ervicesTableLib.inf

PeCoffGetEntryPointLib =7C MdePkg/Libra= ry/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf

+ PciLib =7C MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.i= nf

+ PciExpressLib =7C OvmfPkg/Library/BaseCachingPciExpres= sLib/BaseCachingPciExpressLib.inf

+ PciCapLib =7C OvmfPkg/L= ibrary/BasePciCapLib/BasePciCapLib.inf

+ PciCapPciSegmentLi= b =7C OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf=

+ PciCapPciIoLib =7C OvmfPkg/Library/UefiPciCapPciIoLib/Ue= fiPciCapPciIoLib.inf

+ DxeHardwareInfoLib =7C OvmfPkg/Libra= ry/HardwareInfoLib/DxeHardwareInfoLib.inf

IoLib =7C MdePkg/= Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf

SerialPor= tLib =7C Platform/Loongson/LoongArchQemuPkg/Library/SerialPortLib/SerialP= ortLib.inf

+ EfiResetSystemLib =7C Platform/Loongson/LoongA= rchQemuPkg/Library/ResetSystemAcpiLib/BaseResetSystemAcpiGedLib.inf
=
+ ResetSystemLib =7C Platform/Loongson/LoongArchQemuPkg/Library/= ResetSystemAcpiLib/BaseResetSystemAcpiGedLib.inf

+
+ UefiLib =7C MdePkg/Library/UefiLib/UefiLib.inf

+ Ue= fiBootServicesTableLib =7C MdePkg/Library/UefiBootServicesTableLib/UefiBo= otServicesTableLib.inf

+ UefiRuntimeServicesTableLib =7C Md= ePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf<= /div>
+ UefiDriverEntryPoint =7C MdePkg/Library/UefiDriverEntryPo= int/UefiDriverEntryPoint.inf

+ UefiApplicationEntryPoint =7C= MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
+ DevicePathLib =7C MdePkg/Library/UefiDevicePathLibDevicePa= thProtocol/UefiDevicePathLibDevicePathProtocol.inf

+ =46ile= HandleLib =7C MdePkg/Library/Uefi=46ileHandleLib/Uefi=46ileHandleLib.inf<= /div>
+ SecurityManagementLib =7C MdeModulePkg/Library/DxeSecurit= yManagementLib/DxeSecurityManagementLib.inf

+ UefiUsbLib =7C= MdePkg/Library/UefiUsbLib/UefiUsbLib.inf

+ SerializeVariab= lesLib =7C OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.in= f

+ CustomizedDisplayLib =7C MdeModulePkg/Library/Customize= dDisplayLib/CustomizedDisplayLib.inf

DebugPrintErrorLevelLi= b =7C MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevel= Lib.inf

+ TpmMeasurementLib =7C MdeModulePkg/Library/TpmMea= surementLibNull/TpmMeasurementLibNull.inf

+ AuthVariableLib= =7C MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
+ VarCheckLib =7C MdeModulePkg/Library/VarCheckLib/VarCheckLib= .inf

+ VariablePolicyLib =7C MdeModulePkg/Library/VariableP= olicyLib/VariablePolicyLib.inf

+ VariablePolicyHelperLib =7C= MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf=

+ SortLib =7C MdeModulePkg/Library/UefiSortLib/UefiSortLib= .inf

=46dtLib =7C EmbeddedPkg/Library/=46dtLib/=46dtLib.inf=

+ PciPcdProducerLib =7C OvmfPkg/=46dt/=46dtPciPcdProducerL= ib/=46dtPciPcdProducerLib.inf

+ PciSegmentLib =7C MdePkg/Li= brary/BasePciSegmentLibPci/BasePciSegmentLibPci.inf

+ PciHo= stBridgeLib =7C OvmfPkg/=46dt/=46dtPciHostBridgeLib/=46dtPciHostBridgeLib= .inf

+ PciHostBridgeUtilityLib =7C OvmfPkg/Library/PciHostB= ridgeUtilityLib/PciHostBridgeUtilityLib.inf

+ MmuLib =7C Pl= atform/Loongson/LoongArchQemuPkg/Library/MmuLib/MmuBaseLib.inf

<= div>+ =46ileExplorerLib =7C MdeModulePkg/Library/=46ileExplorerLib/=46ile= ExplorerLib.inf

+

+=21if =24(HTTP=5FBOOT=5FEN= ABLE) =3D=3D TRUE

+ HttpLib =7C MdeModulePkg/Library/DxeHtt= pLib/DxeHttpLib.inf

+=21endif

+ UefiBootManag= erLib =7C MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf<= /div>
+ OrderedCollectionLib =7C MdePkg/Library/BaseOrderedCollec= tionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf

+ ReportStatusCodeLib =7C MdePkg/Library/BaseReportStatusCodeLibNull/Ba= seReportStatusCodeLibNull.inf

+

+ PeCoffGetEn= tryPointLib =7C MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEn= tryPointLib.inf

PeCoffExtraActionLib =7C MdePkg/Library/Bas= ePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf

= DebugAgentLib =7C MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNul= l.inf

+ CpuExceptionHandlerLib =7C MdeModulePkg/Library/Cpu= ExceptionHandlerLibNull/CpuExceptionHandlerLibNull.inf

+
+ PlatformBootManagerLib =7C Platform/Loongson/LoongArchQemuP= kg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf

+ BootLogoLib =7C MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
+ QemuBootOrderLib =7C OvmfPkg/Library/QemuBootOrderLib/QemuBoo= tOrderLib.inf

+ Qemu=46wCfgSimpleParserLib =7C OvmfPkg/Libr= ary/Qemu=46wCfgSimpleParserLib/Qemu=46wCfgSimpleParserLib.inf

+ QemuLoadImageLib =7C OvmfPkg/Library/GenericQemuLoadImageLib/Generic= QemuLoadImageLib.inf

+

+ =23

+ = =23 Virtio Support

+ =23

+ VirtioLib =7C Ovmf= Pkg/Library/VirtioLib/VirtioLib.inf

+ =46rameBufferBltLib =7C= MdeModulePkg/Library/=46rameBufferBltLib/=46rameBufferBltLib.inf
+ Qemu=46wCfgLib =7C OvmfPkg/Library/Qemu=46wCfgLib/Qemu=46wCfgLib= Mmio.inf

+ DebugLib =7C MdePkg/Library/BaseDebugLibSerialPo= rt/BaseDebugLibSerialPort.inf

PeiServicesLib =7C MdePkg/Lib= rary/PeiServicesLib/PeiServicesLib.inf

+ Variable=46lashInf= oLib =7C MdeModulePkg/Library/BaseVariable=46lashInfoLib/BaseVariable=46l= ashInfoLib.inf



=5BLibraryClasses.common.SEC=5D
ReportStatusCodeLib =7C MdeModulePkg/Library/PeiReportStatusCod= eLib/PeiReportStatusCodeLib.inf

=40=40 -104,17 +207,88 =40=40=

Qemu=46wCfgLib =7C Platform/Loongson/LoongArchQemuPkg/Libr= ary/Qemu=46wCfgLib/Qemu=46wCfgPeiLib.inf

MmuLib =7C Platfor= m/Loongson/LoongArchQemuPkg/Library/MmuLib/MmuBaseLibPei.inf


+=5BLibraryClasses.common.DXE=5FCORE=5D

+ HobLib = =7C MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf

+ DxeCor= eEntryPoint =7C MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
+ MemoryAllocationLib =7C MdeModulePkg/Library/DxeCoreMemoryA= llocationLib/DxeCoreMemoryAllocationLib.inf

+ ReportStatusC= odeLib =7C MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCod= eLib.inf

+

+=5BLibraryClasses.common.DXE=5FRU= NTIME=5FDRIVER=5D

+ PcdLib =7C MdePkg/Library/DxePcdLib/Dxe= PcdLib.inf

+ HobLib =7C MdePkg/Library/DxeHobLib/DxeHobLib.= inf

+ DxeCoreEntryPoint =7C MdePkg/Library/DxeCoreEntryPoin= t/DxeCoreEntryPoint.inf

+ MemoryAllocationLib =7C MdePkg/Li= brary/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf

+= ReportStatusCodeLib =7C MdeModulePkg/Library/RuntimeDxeReportStatusCodeL= ib/RuntimeDxeReportStatusCodeLib.inf

+ UefiRuntimeLib =7C M= dePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf

+ ExtractGu= idedSectionLib =7C MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGu= idedSectionLib.inf

+ Qemu=46wCfgS3Lib =7C OvmfPkg/Library/Q= emu=46wCfgS3Lib/DxeQemu=46wCfgS3Lib=46wCfg.inf

+ RealTimeCl= ockLib =7C Platform/Loongson/LoongArchQemuPkg/Library/LsRealTimeClockLib/= LsRealTimeClockLib.inf

+ VariablePolicyLib =7C MdeModulePkg= /Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf

= + Qemu=46wCfgLib =7C Platform/Loongson/LoongArchQemuPkg/Library/Qemu=46wC= fgLib/Qemu=46wCfgPeiLib.inf

+ EfiResetSystemLib =7C Platfor= m/Loongson/LoongArchQemuPkg/Library/ResetSystemAcpiLib/DxeResetSystemAcpi= GedLib.inf

+ ResetSystemLib =7C Platform/Loongson/LoongArch= QemuPkg/Library/ResetSystemAcpiLib/DxeResetSystemAcpiGedLib.inf

=
+=21if =24(TARGET) =21=3D RELEASE

+ DebugLib =7C MdePk= g/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
+=21endif

+

+=5BLibraryClasses.c= ommon.UE=46I=5FDRIVER=5D

+ PcdLib =7C MdePkg/Library/DxePcd= Lib/DxePcdLib.inf

+ HobLib =7C MdePkg/Library/DxeHobLib/Dxe= HobLib.inf

+ DxeCoreEntryPoint =7C MdePkg/Library/DxeCoreEn= tryPoint/DxeCoreEntryPoint.inf

+ MemoryAllocationLib =7C Md= ePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
+ ReportStatusCodeLib =7C MdeModulePkg/Library/DxeReportStatusCodeL= ib/DxeReportStatusCodeLib.inf

+ UefiScsiLib =7C MdePkg/Libr= ary/UefiScsiLib/UefiScsiLib.inf

+ ExtractGuidedSectionLib =7C= MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf=

+ Qemu=46wCfgLib =7C OvmfPkg/Library/Qemu=46wCfgLib/Qemu=46= wCfgLibMmio.inf

+

+=5BLibraryClasses.common.D= XE=5FDRIVER=5D

+ PcdLib =7C MdePkg/Library/DxePcdLib/DxePcd= Lib.inf

+ HobLib =7C MdePkg/Library/DxeHobLib/DxeHobLib.inf=

+ MemoryAllocationLib =7C MdePkg/Library/UefiMemoryAllocat= ionLib/UefiMemoryAllocationLib.inf

+ ReportStatusCodeLib =7C= MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
+ UefiScsiLib =7C MdePkg/Library/UefiScsiLib/UefiScsiLib.inf=

+ CpuExceptionHandlerLib =7C UefiCpuPkg/Library/CpuExcepti= onHandlerLib/DxeCpuExceptionHandlerLib.inf

+ ExtractGuidedS= ectionLib =7C MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedS= ectionLib.inf

+ Qemu=46wCfgS3Lib =7C OvmfPkg/Library/Qemu=46= wCfgS3Lib/DxeQemu=46wCfgS3Lib=46wCfg.inf

+ Qemu=46wCfgLib =7C= OvmfPkg/Library/Qemu=46wCfgLib/Qemu=46wCfgLibMmio.inf

+
+=5BLibraryClasses.common.UE=46I=5FAPPLICATION=5D

+ PcdLib =7C MdePkg/Library/DxePcdLib/DxePcdLib.inf

+ Ho= bLib =7C MdePkg/Library/DxeHobLib/DxeHobLib.inf

+ MemoryAll= ocationLib =7C MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocatio= nLib.inf

+ ExtractGuidedSectionLib =7C MdePkg/Library/DxeEx= tractGuidedSectionLib/DxeExtractGuidedSectionLib.inf

+
=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23

=23

=23 Pcd Secti= on - list of all EDK II PCD Entries defined by this Platform.

=23

=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23

+=5BPcds=46eature=46la= g=5D

+ gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSuppor= t =7C =46ALSE

+=23 gEfiMdeModulePkgTokenSpaceGuid.PcdStatus= CodeUseSerial =7C TRUE

+=23 gEfiMdeModulePkgTokenSpaceGuid.= PcdStatusCodeUseMemory =7C TRUE

+ gEfiMdeModulePkgTokenSpac= eGuid.PcdDxeIplSupportUefiDecompress =7C TRUE

+ gEfiMdeModu= lePkgTokenSpaceGuid.PcdConOutGopSupport =7C TRUE

+ gEfiMdeM= odulePkgTokenSpaceGuid.PcdConOutUgaSupport =7C =46ALSE

+ gE= fiMdeModulePkgTokenSpaceGuid.PcdPciBusHotplugDeviceSupport =7C =46ALSE
+ gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation =7C= TRUE

+ gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTran= slation =7C TRUE

=5BPcds=46ixedAtBuild=5D

=23= =23 BaseLib =23=23

gEfiMdePkgTokenSpaceGuid.PcdMaximumUnico= deStringLength =7C 1000000

gEfiMdePkgTokenSpaceGuid.PcdMaxi= mumAsciiStringLength =7C 1000000

gEfiMdePkgTokenSpaceGuid.P= cdMaximumLinkedListLength =7C 1000000

+ gEfiMdePkgTokenSpac= eGuid.PcdSpinLockTimeout =7C 10000000



+ gEfiMdeModu= lePkgTokenSpaceGuid.PcdStatusCodeMemorySize =7C 1

+ gEfiMde= ModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange =7C =46ALSE=

+ gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler = =7C 0x10

+ gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSiz= e =7C 0x2000

+ gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwar= eErrorVariableSize =7C 0x8000

+ gEfiMdeModulePkgTokenSpaceG= uid.PcdVpdBaseAddress =7C 0x0

+ gEmbeddedTokenSpaceGuid.Pcd= PrePiCpuMemorySize =7C 48

+ gEmbeddedTokenSpaceGuid.PcdPreP= iCpuIoSize =7C 32

+ gEfiMdePkgTokenSpaceGuid.PcdReportStatu= sCodePropertyMask =7C 0x07

gEfiMdePkgTokenSpaceGuid.PcdDebu= gPrintErrorLevel =7C 0x8000004=46

=23 DEBUG=5FINIT 0x000000= 01 // Initialization

=23 DEBUG=5FWARN 0x00000002 // Warning= s

=40=40 -158,6 +332,60 =40=40

=23 0x90000000= - 0xA0000000

=23

gLoongArchQemuPkgTokenSpace= Guid.PcdUefiRamTop =7C 0x10000000

+ gEfiMdeModulePkgTokenSp= aceGuid.PcdAcpiExposedTableVersions =7C 0x06

+

+ gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenu=46ile =7C =7B 0x21,= 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, = 0x66, 0x23, 0x31 =7D

+

+ =23

+ = =23 Network Pcds

+ =23

+=21include NetworkPkg= /NetworkPcds.dsc.inc

+=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23

+=23
+=23 Pcd Dynamic Section - list of all EDK II PCD Entries def= ined by this Platform

+=23

+=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23<= /div>
+=5BPcdsDynamicDefault=5D

+ gEfiMdeModulePkgT= okenSpaceGuid.Pcd=46lashNvStorage=46twSpareBase =7C 0

+ gEf= iMdeModulePkgTokenSpaceGuid.Pcd=46lashNvStorage=46twSpareBase64 =7C 0
+ gEfiMdeModulePkgTokenSpaceGuid.Pcd=46lashNvStorageVariableBa= se64 =7C 0

+ gEfiMdeModulePkgTokenSpaceGuid.Pcd=46lashNvSto= rage=46twWorkingBase =7C 0

+ gEfiMdeModulePkgTokenSpaceGuid= .Pcd=46lashNvStorage=46twWorkingBase64 =7C 0

+ gEfiMdeModul= ePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved =7C 0

+ gE= fiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration =7C =46ALSE
+ gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution =7C= 800

+ gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResol= ution =7C 600

+ gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTim= eOut =7C 2

+

+ =23 Set video resolution for t= ext setup.

+ gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHo= rizontalResolution =7C 640

+ gEfiMdeModulePkgTokenSpaceGuid= .PcdSetupVideoVerticalResolution =7C 480

+

+ = gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion =7C 0x0300

= + gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev =7C 0x0

+<= /div>
+ gLoongArchQemuPkgTokenSpaceGuid.PcdRamSize =7C 0x40000000=

+

+ =23=23 If TRUE, OvmfPkg/AcpiPlatformDxe = will not wait for PCI

+ =23 enumeration to complete before = installing ACPI tables.

+ gEfiMdeModulePkgTokenSpaceGuid.Pc= dPciDisableBusEnumeration =7CTRUE

+ gEfiMdePkgTokenSpaceGui= d.PcdPciIoTranslation =7C0x0

+ =23 set PcdPciExpressBaseAdd= ress to MAX=5FUINT64, which signifies that this

+ =23 PCD a= nd PcdPciDisableBusEnumeration above have not been assigned yet

=
+ gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress =7C0x=46=46=46=46= =46=46=46=46=46=46=46=46=46=46=46=46

+

+ =23<= /div>
+ =23 IPv4 and IPv6 PXE Boot support.

+ =23
+ gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport =7C 0x01
+ gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport =7C 0x01
+

+ =23

+ =23 SMBIOS entry point v= ersion

+ =23

+ gEfiMdeModulePkgTokenSpaceGuid= .PcdSmbiosVersion=7C0x0300

+ gEfiMdeModulePkgTokenSpaceGuid= .PcdSmbiosDocRev=7C0x0

+ gUefiOvmfPkgTokenSpaceGuid.PcdQemu= SmbiosValidated=7CTRUE



=5BComponents=5D


=40=40 -184,3 +412,196 =40=40

<LibraryClasses= >

PcdLib=7CMdePkg/Library/PeiPcdLib/PeiPcdLib.inf
<= br>
=7D

+

+ =23

+ =23 DXE P= hase modules

+ =23

+ MdeModulePkg/Core/Dxe/Dx= eMain.inf =7B

+ <LibraryClasses>

+ NULL= =7C MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib= .inf

+ DevicePathLib =7C MdePkg/Library/UefiDevicePathLib/U= efiDevicePathLib.inf

+ ExtractGuidedSectionLib =7C MdePkg/L= ibrary/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
+ =7D

+

+ MdeModulePkg/Universal/Report= StatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
+ MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHan= dlerRuntimeDxe.inf

+ MdeModulePkg/Universal/PCD/Dxe/Pcd.inf= =7B

+ <LibraryClasses>

+ PcdLib=7CMdeP= kg/Library/BasePcdLibNull/BasePcdLibNull.inf

+ =7D
+

+ MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
=
+ Platform/Loongson/LoongArchQemuPkg/Drivers/CpuDxe/CpuDxe.inf
+ MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf<= /div>
+ MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/Monoton= icCounterRuntimeDxe.inf

+ MdeModulePkg/Universal/CapsuleRun= timeDxe/CapsuleRuntimeDxe.inf

+ MdeModulePkg/Universal/Secu= rityStubDxe/SecurityStubDxe.inf

+ Platform/Loongson/LoongAr= chQemuPkg/Drivers/StableTimerDxe/TimerDxe.inf

+ MdeModulePk= g/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf

+ MdeModulePkg/Universal/Metronome/Metronome.inf

+ Embedde= dPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf

+<= /div>
+ =23

+ =23 Variable

+ =23
+

+ OvmfPkg/EmuVariable=46vbRuntimeDxe/=46vb.inf = =7B

+ <LibraryClasses>

+ Platform=46vbL= ib=7COvmfPkg/Library/EmuVariable=46vbLib/EmuVariable=46vbLib.inf
+ =7D

+ MdeModulePkg/Universal/=46aultTolerantWriteDx= e/=46aultTolerantWriteDxe.inf

+ MdeModulePkg/Universal/Vari= able/RuntimeDxe/VariableRuntimeDxe.inf =7B

+ <LibraryCla= sses>

+ NULL=7CMdeModulePkg/Library/VarCheckUefiLib/VarC= heckUefiLib.inf

+ BaseMemoryLib=7CMdePkg/Library/BaseMemory= Lib/BaseMemoryLib.inf

+ =7D

+

+= =23

+ =23 Platform Driver

+ =23

+ OvmfPkg/VirtioBlkDxe/VirtioBlk.inf

+ OvmfPkg/VirtioScsi= Dxe/VirtioScsi.inf

+ OvmfPkg/VirtioRngDxe/VirtioRng.inf
+

+ =23

+ =23 =46ile system
<= br>
+ =23

+ MdeModulePkg/Universal/Disk/DiskIoDxe/DiskI= oDxe.inf

+ MdeModulePkg/Universal/Disk/PartitionDxe/Partiti= onDxe.inf

+ MdeModulePkg/Universal/Disk/UnicodeCollation/En= glishDxe/EnglishDxe.inf

+ =46atPkg/Enhanced=46atDxe/=46at.i= nf

+ MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
+ OvmfPkg/Virtio=46sDxe/Virtio=46sDxe.inf

+

=
+ =23

+ =23BDS

+ =23

+ Mde= ModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf =7B

+ &= lt;LibraryClasses>

+ DevicePathLib =7C MdePkg/Library/Ue= fiDevicePathLib/UefiDevicePathLib.inf

+ PcdLib =7C MdePkg/L= ibrary/BasePcdLibNull/BasePcdLibNull.inf

+ =7D

+ MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
+ MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
<= br>
+ MdeModulePkg/Universal/BdsDxe/BdsDxe.inf

+ MdeMod= ulePkg/Logo/LogoDxe.inf

+ MdeModulePkg/Universal/HiiDatabas= eDxe/HiiDatabaseDxe.inf

+ MdeModulePkg/Application/UiApp/Ui= App.inf =7B

+ <LibraryClasses>

+ NULL=7C= MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf

<= div>+ NULL=7CMdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
+ NULL=7CMdeModulePkg/Library/BootMaintenanceManagerUiLib/Bo= otMaintenanceManagerUiLib.inf

+ =7D

+
+ OvmfPkg/QemuKernelLoader=46sDxe/QemuKernelLoader=46sDxe.inf =7B<= /div>
+ <LibraryClasses>

+ NULL=7COvmfPkg/Lib= rary/BlobVerifierLibNull/BlobVerifierLibNull.inf

+ =7D
+

+ =23

+ =23 Network Support
=
+ =23

+=23=21include NetworkPkg/NetworkComponents.= dsc.inc

+

+=23 NetworkPkg/UefiPxeBcDxe/UefiPx= eBcDxe.inf =7B

+=23 <LibraryClasses>

+=23= NULL=7COvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf
=
+=23 =7D

+

+=21if =24(NETWORK=5FTLS=5F= ENABLE) =3D=3D TRUE

+ NetworkPkg/TlsAuthConfigDxe/TlsAuthCo= nfigDxe.inf =7B

+ <LibraryClasses>

+ NU= LL=7COvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf

= + =7D

+=21endif

+ OvmfPkg/VirtioNetDxe/Virtio= Net.inf

+

+ =23

+ =23 IDE/SCSI<= /div>
+ =23

+ OvmfPkg/SataControllerDxe/SataControl= lerDxe.inf

+ MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapi= PassThru.inf

+ MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf=

+ MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
+ MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf

+=

+ =23

+ =23 SMBIOS Support

+ =23=

+ MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf =7B
=
+ <LibraryClasses>

+ NULL =7C OvmfPkg/Librar= y/SmbiosVersionLib/DetectSmbiosVersionLib.inf

+ =7D
+ OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf

+<= /div>
+ =23

+ =23 PCI

+ =23

=
+ Platform/Loongson/LoongArchQemuPkg/Drivers/PciCpuIo2Dxe/PciCpuIo2D= xe.inf

+ EmbeddedPkg/Drivers/=46dtClientDxe/=46dtClientDxe.= inf

+ MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDx= e.inf

+ MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
<= br>
+ OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf

+ OvmfPkg/Virtio10Dxe/Virtio10.inf

+

+ =23
+ =23 Console

+ =23

+ MdeModuleP= kg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf

+ Md= eModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf

<= div>+ MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
+ MdeModulePkg/Universal/PrintDxe/PrintDxe.inf

+ MdeM= odulePkg/Universal/SerialDxe/SerialDxe.inf

+ MdeModulePkg/U= niversal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf =7B

<= div>+ <LibraryClasses>

+ PcdLib=7CMdePkg/Library/DxeP= cdLib/DxePcdLib.inf

+ =7D

+

+ =23=

+ =23 Video

+ =23

+ OvmfPkg/Qe= muRamfbDxe/QemuRamfbDxe.inf

+ OvmfPkg/VirtioGpuDxe/VirtioGp= u.inf

+ OvmfPkg/PlatformDxe/Platform.inf

+
+ =23

+ =23 Usb Support

+ =23
+ MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf

+ Mde= ModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf

+ MdeModulePkg/Bus/Pc= i/XhciDxe/XhciDxe.inf

+ MdeModulePkg/Bus/Usb/UsbBusDxe/UsbB= usDxe.inf

+ MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
+ MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf<= /div>
+

+ =23

+ =23 ACPI Support
+ =23

+ MdeModulePkg/Universal/Acpi/AcpiTableDxe/= AcpiTableDxe.inf

+ MdeModulePkg/Universal/Acpi/BootGraphics= ResourceTableDxe/BootGraphicsResourceTableDxe.inf

+ OvmfPkg= /AcpiPlatformDxe/AcpiPlatformDxe.inf

+

+ =23<= /div>
+ =23app

+ =23

+ ShellPkg/Appli= cation/Shell/Shell.inf =7B

+ <LibraryClasses>
+ ShellCommandLib=7CShellPkg/Library/UefiShellCommandLib/UefiShell= CommandLib.inf

+ NULL=7CShellPkg/Library/UefiShellLevel2Com= mandsLib/UefiShellLevel2CommandsLib.inf

+ NULL=7CShellPkg/L= ibrary/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
+ NULL=7CShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel= 3CommandsLib.inf

+ NULL=7CShellPkg/Library/UefiShellDriver1= CommandsLib/UefiShellDriver1CommandsLib.inf

+ NULL=7CShellP= kg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
+ NULL=7CShellPkg/Library/UefiShellInstall1CommandsLib/UefiShel= lInstall1CommandsLib.inf

+ NULL=7CShellPkg/Library/UefiShel= lNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf

+ Han= dleParsingLib=7CShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLi= b.inf

+ ShellLib=7CShellPkg/Library/UefiShellLib/UefiShellL= ib.inf

+ =46ileHandleLib=7CMdePkg/Library/Uefi=46ileHandleL= ib/Uefi=46ileHandleLib.inf

+ SortLib=7CMdeModulePkg/Library= /UefiSortLib/UefiSortLib.inf

+ PrintLib=7CMdePkg/Library/Ba= sePrintLib/BasePrintLib.inf

+ BcfgCommandLib=7CShellPkg/Lib= rary/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf

+&= lt;Pcds=46ixedAtBuild>

+ gEfiMdePkgTokenSpaceGuid.PcdDeb= ugPropertyMask=7C0x=46=46

+ gEfiShellPkgTokenSpaceGuid.PcdS= hellLibAutoInitialize=7C=46ALSE

+ gEfiMdePkgTokenSpaceGuid.= PcdUefiLibMaxPrintBufferSize=7C8000

+ =7D

dif= f --git a/Platform/Loongson/LoongArchQemuPkg/Loongson.fdf b/Platform/Loon= gson/LoongArchQemuPkg/Loongson.fdf

index 8e257f2392..34bcdf= 0d9c 100644

--- a/Platform/Loongson/LoongArchQemuPkg/Loongs= on.fdf

+++ b/Platform/Loongson/LoongArchQemuPkg/Loongson.fd= f

=40=40 -22,6 +22,14 =40=40 =24(SEC=46V=5FO=46=46SET)=7C=24= (SEC=46V=5FSIZE)

gLoongArchQemuPkgTokenSpaceGuid.Pcd=46lash= Sec=46vBase=7CgLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashSec=46vSize
=
=46V =3D SEC=46V



+=24(PEI=46V=5FO=46=46SET= )=7C=24(PEI=46V=5FSIZE)

+gLoongArchQemuPkgTokenSpaceGuid.Pc= d=46lashPei=46vBase=7CgLoongArchQemuPkgTokenSpaceGuid.Pcd=46lashPei=46vSi= ze

+=46V =3D PEI=46V

+

+=24(DXE= =46V=5FO=46=46SET)=7C=24(DXE=46V=5FSIZE)

+gLoongArchQemuPkg= TokenSpaceGuid.Pcd=46lashDxe=46vBase=7CgLoongArchQemuPkgTokenSpaceGuid.Pc= d=46lashDxe=46vSize

+=46V =3D =46VMAIN=5FCOMPACT

<= div>+

=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23

=5B=46V.SEC=46V=5D

=46= vNameGuid =3D 587d4265-5e71-41da-9c35-4258551f1e22

=40=40 -= 79,6 +87,181 =40=40 IN=46 MdeModulePkg/Universal/PCD/Pei/Pcd.inf
IN=46 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf

IN=46 P= latform/Loongson/LoongArchQemuPkg/PlatformPei/PlatformPei.inf


+=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23

+=5B=46V.DXE=46V=5D

+=46vName= Guid =3D 5d19a5b3-130f-459b-a292-9270a9e6bc62

+BlockSize =3D= =24(BLOCK=5FSIZE)

+=46vAlignment =3D 16

+ERA= SE=5FPOLARITY =3D 1

+MEMORY=5FMAPPED =3D TRUE

+STICKY=5FWRITE =3D TRUE

+LOCK=5FCAP =3D TRUE

+LOCK=5FSTATUS =3D TRUE

+READ=5FDISABLED=5FCAP =3D TRUE
+READ=5FENABLED=5FCAP =3D TRUE

+READ=5FSTATUS = =3D TRUE

+READ=5FLOCK=5FCAP =3D TRUE

+READ=5F= LOCK=5FSTATUS =3D TRUE

+WRITE=5FDISABLED=5FCAP =3D TRUE
+WRITE=5FENABLED=5FCAP =3D TRUE

+WRITE=5FSTATUS = =3D TRUE

+WRITE=5FLOCK=5FCAP =3D TRUE

+WRITE=5F= LOCK=5FSTATUS =3D TRUE

+

+APRIORI DXE =7B
+ IN=46 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf=

+ IN=46 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf

+=7D

+

+=23

+=23 DXE Phase m= odules

+=23

+IN=46 MdeModulePkg/Core/Dxe/DxeM= ain.inf

+

+IN=46 MdeModulePkg/Universal/Repor= tStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
+IN=46 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusC= odeHandlerRuntimeDxe.inf

+IN=46 MdeModulePkg/Universal/PCD/= Dxe/Pcd.inf

+IN=46 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.= inf

+IN=46 Platform/Loongson/LoongArchQemuPkg/Drivers/CpuDx= e/CpuDxe.inf

+IN=46 MdeModulePkg/Universal/SecurityStubDxe/= SecurityStubDxe.inf

+IN=46 Platform/Loongson/LoongArchQemuP= kg/Drivers/StableTimerDxe/TimerDxe.inf

+IN=46 MdeModulePkg/= Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf

+= IN=46 MdeModulePkg/Universal/Metronome/Metronome.inf

+IN=46= MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf

= +IN=46 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounter= RuntimeDxe.inf

+IN=46 EmbeddedPkg/RealTimeClockRuntimeDxe/R= ealTimeClockRuntimeDxe.inf

+IN=46 MdeModulePkg/Universal/Ca= psuleRuntimeDxe/CapsuleRuntimeDxe.inf

+

+=23<= /div>
+=23 Variable

+=23

+IN=46 OvmfP= kg/EmuVariable=46vbRuntimeDxe/=46vb.inf

+IN=46 MdeModulePkg= /Universal/=46aultTolerantWriteDxe/=46aultTolerantWriteDxe.inf

<= div>+IN=46 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.= inf

+=23

+=23 PCI

+=23
+IN=46 Platform/Loongson/LoongArchQemuPkg/Drivers/PciCpuIo2Dxe/PciC= puIo2Dxe.inf

+IN=46 EmbeddedPkg/Drivers/=46dtClientDxe/=46d= tClientDxe.inf

+IN=46 MdeModulePkg/Bus/Pci/PciHostBridgeDxe= /PciHostBridgeDxe.inf

+IN=46 MdeModulePkg/Bus/Pci/PciBusDxe= /PciBusDxe.inf

+IN=46 OvmfPkg/VirtioPciDeviceDxe/VirtioPciD= eviceDxe.inf

+IN=46 OvmfPkg/Virtio10Dxe/Virtio10.inf
<= br>
+

+=23

+=23 Platform Driver

=
+=23

+IN=46 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
+IN=46 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf

+IN=46 O= vmfPkg/VirtioRngDxe/VirtioRng.inf

+IN=46 OvmfPkg/VirtioNetD= xe/VirtioNet.inf

+

+=23

+=23 Co= nsole

+=23

+IN=46 MdeModulePkg/Universal/Cons= ole/ConPlatformDxe/ConPlatformDxe.inf

+IN=46 MdeModulePkg/U= niversal/Console/ConSplitterDxe/ConSplitterDxe.inf

+IN=46 M= deModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf

+= IN=46 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf

+IN=46 M= deModulePkg/Universal/SerialDxe/SerialDxe.inf

+IN=46 MdeMod= ulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
<= br>
+

+=23

+=23Video

+=23
+IN=46 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf

+= IN=46 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf

+IN=46 OvmfPkg/Pla= tformDxe/Platform.inf

+

+=23

+=23= IDE

+=23

+IN=46 OvmfPkg/SataControllerDxe/Sa= taControllerDxe.inf

+IN=46 MdeModulePkg/Bus/Ata/AtaAtapiPas= sThru/AtaAtapiPassThru.inf

+IN=46 MdeModulePkg/Bus/Ata/AtaB= usDxe/AtaBusDxe.inf

+IN=46 MdeModulePkg/Bus/Scsi/ScsiBusDxe= /ScsiBusDxe.inf

+IN=46 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/Sc= siDiskDxe.inf

+

+=23

+=23 Usb S= upport

+=23

+IN=46 MdeModulePkg/Bus/Pci/UhciD= xe/UhciDxe.inf

+IN=46 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.= inf

+IN=46 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
+IN=46 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf

= +IN=46 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf

+IN=46 Md= eModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf

= +

+=23

+=23BDS

+=23

+IN=46 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
<= br>
+IN=46 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
+IN=46 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDx= e.inf

+IN=46 MdeModulePkg/Universal/SetupBrowserDxe/SetupBr= owserDxe.inf

+IN=46 MdeModulePkg/Universal/BdsDxe/BdsDxe.in= f

+IN=46 MdeModulePkg/Logo/LogoDxe.inf

+IN=46= MdeModulePkg/Application/UiApp/UiApp.inf

+IN=46 OvmfPkg/Qe= muKernelLoader=46sDxe/QemuKernelLoader=46sDxe.inf

+
+=23

+=23Smbios

+=23

+IN= =46 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf

+IN=46 O= vmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf

+

<= div>+=23

+=23Acpi

+=23

+IN=46 M= deModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf

+I= N=46 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphic= sResourceTableDxe.inf

+IN=46 OvmfPkg/AcpiPlatformDxe/AcpiPl= atformDxe.inf

+

+=23

+=23 Netwo= rk modules

+=23=21include NetworkPkg/Network.fdf.inc
<= br>
+

+=23

+=23 =46ile system

+=23

+IN=46 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo= Dxe.inf

+IN=46 MdeModulePkg/Universal/Disk/PartitionDxe/Par= titionDxe.inf

+IN=46 MdeModulePkg/Universal/Disk/UnicodeCol= lation/EnglishDxe/EnglishDxe.inf

+IN=46 =46atPkg/Enhanced=46= atDxe/=46at.inf

+IN=46 MdeModulePkg/Universal/Disk/UdfDxe/U= dfDxe.inf

+IN=46 OvmfPkg/Virtio=46sDxe/Virtio=46sDxe.inf
+

+=23

+=23Boot OS

= +=23

+IN=46 ShellPkg/Application/Shell/Shell.inf

<= div>+

+=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23

+=5B=46V.=46VMAIN=5FCOMPACT=5D
+=46vNameGuid =3D af8c3fe8-9ce8-4548-884a-e3f4dd91f040
+=46vAlignment =3D 16

+ERASE=5FPOLARITY =3D 1
<= br>
+MEMORY=5FMAPPED =3D TRUE

+STICKY=5FWRITE =3D TRUE<= /div>
+LOCK=5FCAP =3D TRUE

+LOCK=5FSTATUS =3D TRUE<= /div>
+WRITE=5FDISABLED=5FCAP =3D TRUE

+WRITE=5FENA= BLED=5FCAP =3D TRUE

+WRITE=5FSTATUS =3D TRUE

= +WRITE=5FLOCK=5FCAP =3D TRUE

+WRITE=5FLOCK=5FSTATUS =3D TRU= E

+READ=5FDISABLED=5FCAP =3D TRUE

+READ=5FENA= BLED=5FCAP =3D TRUE

+READ=5FSTATUS =3D TRUE

+= READ=5FLOCK=5FCAP =3D TRUE

+READ=5FLOCK=5FSTATUS =3D TRUE
+

+=46ILE =46V=5FIMAGE =3D 9E21=46D93-9C72-4c1= 5-8C4B-E77=461DB2D792 =7B

+ SECTION GUIDED EE4E5898-3914-42= 59-9D6E-DC7BD79403C=46 PROCESSING=5FREQUIRED =3D TRUE =7B

+= SECTION =46V=5FIMAGE =3D DXE=46V

+ =7D

+ =7D=

+

=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23

=5BRule.Common.SEC=5D<= /div>
=46ILE SEC =3D =24(NAMED=5FGUID) =7B

=40=40 -= 102,3 +285,65 =40=40 IN=46 Platform/Loongson/LoongArchQemuPkg/PlatformPei= /PlatformPei.inf

=7D



=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23

+=5BRule.Common.DXE=5FCORE=5D

+ =46ILE DXE=5FCORE =3D =24= (NAMED=5FGUID) =7B

+ PE32 PE32 =24(IN=46=5FOUTPUT)/=24(MODU= LE=5FNAME).efi

+ UI STRING=3D=22=24(MODULE=5FNAME)=22 Optio= nal

+ =7D

+

+=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23

+=5BRule.Common.DXE=5FDRIVER=5D

+ =46ILE DRIVER =3D =24(N= AMED=5FGUID) =7B

+ DXE=5FDEPEX DXE=5FDEPEX Optional =24(IN=46= =5FOUTPUT)/=24(MODULE=5FNAME).depex

+ PE32 PE32 =24(IN=46=5F= OUTPUT)/=24(MODULE=5FNAME).efi

+ UI STRING=3D=22=24(MODULE=5F= NAME)=22 Optional

+ RAW ACPI Optional =7C.acpi

+ RAW ASL Optional =7C.aml

+ =7D

+
+=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23

+=5BRule.Common.DXE=5FRUNTIME=5FDRIVER=5D
+ =46ILE DRIVER =3D =24(NAMED=5FGUID) =7B

+ DXE=5F= DEPEX DXE=5FDEPEX Optional =24(IN=46=5FOUTPUT)/=24(MODULE=5FNAME).depex
+ PE32 PE32 =24(IN=46=5FOUTPUT)/=24(MODULE=5FNAME).efi
=
+ UI STRING=3D=22=24(MODULE=5FNAME)=22 Optional

+ = =7D

+

+=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23

+=5BRule.Common.UE=46= I=5FDRIVER=5D

+ =46ILE DRIVER =3D =24(NAMED=5FGUID) =7B
+ DXE=5FDEPEX DXE=5FDEPEX Optional =24(IN=46=5FOUTPUT)/=24(MOD= ULE=5FNAME).depex

+ PE32 PE32 =24(IN=46=5FOUTPUT)/=24(MODUL= E=5FNAME).efi

+ UI STRING=3D=22=24(MODULE=5FNAME)=22 Option= al

+ =7D

+

+=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23

+= =5BRule.Common.UE=46I=5FDRIVER.BINARY=5D

+ =46ILE DRIVER =3D= =24(NAMED=5FGUID) =7B

+ DXE=5FDEPEX DXE=5FDEPEX Optional =7C= .depex

+ PE32 PE32 =7C.efi

+ UI STRING=3D=22=24= (MODULE=5FNAME)=22 Optional

+ VERSION STRING=3D=22=24(IN=46= =5FVERSION)=22 Optional BUILD=5FNUM=3D=24(BUILD=5FNUMBER)

+= =7D

+

+=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23

+=5BRule.Common.UE=46= I=5FAPPLICATION=5D

+ =46ILE APPLICATION =3D =24(NAMED=5FGUI= D) =7B

+ PE32 PE32 =24(IN=46=5FOUTPUT)/=24(MODULE=5FNAME).e= fi

+ UI STRING=3D=22=24(MODULE=5FNAME)=22 Optional
+ =7D

+

+=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23

+=5BRule.C= ommon.UE=46I=5FAPPLICATION.BINARY=5D

+ =46ILE APPLICATION =3D= =24(NAMED=5FGUID) =7B

+ PE32 PE32 =7C.efi

+ = UI STRING=3D=22=24(MODULE=5FNAME)=22 Optional

+ VERSION STR= ING=3D=22=24(IN=46=5FVERSION)=22 Optional BUILD=5FNUM=3D=24(BUILD=5FNUMBE= R)

+ =7D

+

+=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23

+= =5BRule.Common.USER=5FDE=46INED.ACPITABLE=5D

+ =46ILE =46RE= E=46ORM =3D =24(NAMED=5FGUID) =7B

+ RAW ACPI =7C.acpi
=
+ RAW ASL =7C.aml

+ =7D

diff --git a= /Platform/Loongson/LoongArchQemuPkg/Loongson.fdf.inc b/Platform/Loongson/= LoongArchQemuPkg/Loongson.fdf.inc

index 6f17909748..3530f90= c67 100644

--- a/Platform/Loongson/LoongArchQemuPkg/Loongso= n.fdf.inc

+++ b/Platform/Loongson/LoongArchQemuPkg/Loongson= .fdf.inc

=40=40 -19,3 +19,45 =40=40 DE=46INE =46D=5FSIZE =3D= 0x400000

=23Set Sec base address and size in flash
DE=46INE SEC=46V=5FO=46=46SET =3D 0x00000000

DE=46IN= E SEC=46V=5FSIZE =3D 0x00010000

+

+=23Set Pei= base address and size in flash

+DE=46INE PEI=46V=5FO=46=46= SET =3D 0x00010000

+DE=46INE PEI=46V=5FSIZE =3D 0x00040000<= /div>
+

+=23Set Dxe base address and size in flash<= /div>
+DE=46INE DXE=46V=5FO=46=46SET =3D 0x00050000

+DE=46INE DXE=46V=5FSIZE =3D 0x00350000

+

+=23= Set Var base address and size in flash

+DE=46INE VARIABLE=5F= O=46=46SET =3D 0x003a0000

+DE=46INE VAR=5FALL=5FSIZE =3D 0x= 60000

+

+=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23

+=23Set Var =46l= ash layout

+DE=46INE VARIABLE=5FSIZE =3D 0x00010000
+DE=46INE VAR=5FALL=5FBLOCKS =3D 0x60

+

+DE=46INE RESERVE1=5FO=46=46SET =3D =24(VARIABLE=5FO=46=46SET) + =24(VA= RIABLE=5FSIZE)

+DE=46INE RESERVE1=5FSIZE =3D 0xB000
+

+DE=46INE RESERVE2=5FO=46=46SET =3D =24(RESERVE1=5F= O=46=46SET) + =24(RESERVE1=5FSIZE)

+DE=46INE RESERVE2=5FSIZ= E =3D 0x14000

+

+DE=46INE SPARE=5FO=46=46SET = =3D =24(RESERVE2=5FO=46=46SET) + =24(RESERVE2=5FSIZE)

+DE=46= INE SPARE=5FSIZE =3D 0x20000

+

+DE=46INE =46W= TWORKING=5FO=46=46SET =3D =24(SPARE=5FO=46=46SET) + =24(SPARE=5FSIZE)
+DE=46INE =46WTWORKING=5FSIZE =3D 0x8000

+
=
+DE=46INE EVENT=5FLOG=5FO=46=46SET =3D =24(=46WTWORKING=5FO=46=46= SET) + =24(=46WTWORKING=5FSIZE)

+DE=46INE EVENT=5FLOG=5FSIZ= E =3D 0x8000

+

+=23 Set Variable

+SET gEfiMdeModulePkgTokenSpaceGuid.Pcd=46lashNvStorageVariableBase64 =3D= 0

+SET gEfiMdeModulePkgTokenSpaceGuid.Pcd=46lashNvStorageV= ariableSize =3D =24(VARIABLE=5FSIZE)

+

+=23 S= et =46twSpare

+SET gEfiMdeModulePkgTokenSpaceGuid.Pcd=46las= hNvStorage=46twSpareSize =3D =24(SPARE=5FSIZE)

+

<= div>+=23 Set =46twWorking

+SET gEfiMdeModulePkgTokenSpaceGu= id.Pcd=46lashNvStorage=46twWorkingSize =3D =24(=46WTWORKING=5FSIZE)
=
--

2.31.1
--636e1ad1_7821d6ad_1e57b--