@@ -87,7 +87,7 @@ OcStoreLoadPath (
8787 ));
8888}
8989
90- #ifndef CLOVER_BUILD
90+ // #ifndef CLOVER_BUILD
9191STATIC
9292EFI_STATUS
9393ProduceDebugReport (
@@ -98,9 +98,10 @@ ProduceDebugReport (
9898 EFI_FILE_PROTOCOL * Fs ;
9999 EFI_FILE_PROTOCOL * SysReport ;
100100 EFI_FILE_PROTOCOL * SubReport ;
101- OC_CPU_INFO CpuInfo ;
101+ // OC_CPU_INFO CpuInfo;
102102
103- OcCpuScanProcessor (& CpuInfo );
103+ // OcCpuScanProcessor (&CpuInfo);
104+ DEBUG ((DEBUG_INFO , "OC: ProduceDebugReport\n" ));
104105
105106 if (VolumeHandle != NULL ) {
106107 Fs = OcLocateRootVolume (VolumeHandle , NULL );
@@ -173,35 +174,35 @@ ProduceDebugReport (
173174
174175 DEBUG ((DEBUG_INFO , "OC: SMBIOS dumping - %r\n" , Status ));
175176
176- Status = OcSafeFileOpen (
177- SysReport ,
178- & SubReport ,
179- L"Audio" ,
180- EFI_FILE_MODE_READ | EFI_FILE_MODE_WRITE | EFI_FILE_MODE_CREATE ,
181- EFI_FILE_DIRECTORY
182- );
183- if (!EFI_ERROR (Status )) {
184- DEBUG ((DEBUG_INFO , "OC: Dumping audio for report...\n" ));
185- Status = OcAudioDump (SubReport );
186- SubReport -> Close (SubReport );
187- }
188-
189- DEBUG ((DEBUG_INFO , "OC: Audio dumping - %r\n" , Status ));
190-
191- Status = OcSafeFileOpen (
192- SysReport ,
193- & SubReport ,
194- L"CPU" ,
195- EFI_FILE_MODE_READ | EFI_FILE_MODE_WRITE | EFI_FILE_MODE_CREATE ,
196- EFI_FILE_DIRECTORY
197- );
198- if (!EFI_ERROR (Status )) {
199- DEBUG ((DEBUG_INFO , "OC: Dumping CPUInfo for report...\n" ));
200- Status = OcCpuInfoDump (& CpuInfo , SubReport );
201- SubReport -> Close (SubReport );
202- }
203-
204- DEBUG ((DEBUG_INFO , "OC: CPUInfo dumping - %r\n" , Status ));
177+ // Status = OcSafeFileOpen (
178+ // SysReport,
179+ // &SubReport,
180+ // L"Audio",
181+ // EFI_FILE_MODE_READ | EFI_FILE_MODE_WRITE | EFI_FILE_MODE_CREATE,
182+ // EFI_FILE_DIRECTORY
183+ // );
184+ // if (!EFI_ERROR (Status)) {
185+ // DEBUG ((DEBUG_INFO, "OC: Dumping audio for report...\n"));
186+ // Status = OcAudioDump (SubReport);
187+ // SubReport->Close (SubReport);
188+ // }
189+ //
190+ // DEBUG ((DEBUG_INFO, "OC: Audio dumping - %r\n", Status));
191+
192+ // Status = OcSafeFileOpen (
193+ // SysReport,
194+ // &SubReport,
195+ // L"CPU",
196+ // EFI_FILE_MODE_READ | EFI_FILE_MODE_WRITE | EFI_FILE_MODE_CREATE,
197+ // EFI_FILE_DIRECTORY
198+ // );
199+ // if (!EFI_ERROR (Status)) {
200+ // DEBUG ((DEBUG_INFO, "OC: Dumping CPUInfo for report...\n"));
201+ // Status = OcCpuInfoDump (&CpuInfo, SubReport);
202+ // SubReport->Close (SubReport);
203+ // }
204+ //
205+ // DEBUG ((DEBUG_INFO, "OC: CPUInfo dumping - %r\n", Status));
205206
206207 Status = OcSafeFileOpen (
207208 SysReport ,
@@ -239,6 +240,7 @@ ProduceDebugReport (
239240 return EFI_SUCCESS ;
240241}
241242
243+ #ifndef CLOVER_BUILD
242244STATIC
243245EFI_STATUS
244246EFIAPI
@@ -437,7 +439,7 @@ ClOcReadConfigurationFile(
437439
438440 ConfigData = OcStorageReadFileUnicode (
439441 Storage ,
440- OPEN_CORE_CONFIG_PATH ,
442+ configPath ,
441443 & ConfigDataSize
442444 );
443445
@@ -479,9 +481,9 @@ OcMiscEarlyInit (
479481 OCS_VAULT_MODE Vault ;
480482 UINTN PciDeviceInfoSize ;
481483
484+ #ifndef CLOVER_BUILD
482485 DEBUG ((DEBUG_WARN , "OC: config %s\n" , OPEN_CORE_CONFIG_PATH ));
483486
484- #ifndef CLOVER_BUILD
485487 ConfigData = OcStorageReadFileUnicode (
486488 Storage ,
487489 OPEN_CORE_IN_CLOVER_CONFIG_PATH ,
@@ -708,6 +710,48 @@ OcMiscMiddleInit (
708710 BOOLEAN HasShortLauncher ;
709711 BOOLEAN HasSystemLauncher ;
710712
713+
714+ DEBUG ((DEBUG_INFO , "UEFI Quirks\n" ));
715+ DEBUG ((DEBUG_INFO , "EBSD %d TST %d AHS %d DSP %d EVA %d EV %d FUS %d IIFR %d RGB %d RUPR %d RUO %d ROR %d RBVR %d SRP %d UFC %d FOWF %d\n" ,
716+ Config -> Uefi .Quirks .ExitBootServicesDelay ,
717+ Config -> Uefi .Quirks .TscSyncTimeout ,
718+ Config -> Uefi .Quirks .ActivateHpetSupport ,
719+ Config -> Uefi .Quirks .DisableSecurityPolicy ,
720+ Config -> Uefi .Quirks .EnableVectorAcceleration ,
721+ Config -> Uefi .Quirks .EnableVmx ,
722+ Config -> Uefi .Quirks .ForgeUefiSupport ,
723+ Config -> Uefi .Quirks .IgnoreInvalidFlexRatio ,
724+ Config -> Uefi .Quirks .ResizeGpuBars ,
725+ Config -> Uefi .Quirks .ResizeUsePciRbIo ,
726+ Config -> Uefi .Quirks .ReleaseUsbOwnership ,
727+ Config -> Uefi .Quirks .ReloadOptionRoms ,
728+ Config -> Uefi .Quirks .RequestBootVarRouting ,
729+ Config -> Uefi .Quirks .ShimRetainProtocol ,
730+ Config -> Uefi .Quirks .UnblockFsConnect ,
731+ Config -> Uefi .Quirks .ForceOcWriteFlash ));
732+
733+ DEBUG ((DEBUG_INFO , "Kernel quirks\n" ));
734+ DEBUG ((DEBUG_INFO , "ACPCL %d AXCL %d AXEM %d AXFB %d CSG %d DIM %d DLJ %d DRC %d DPM %d EBTFF %d EDI %d FAI %d IPBS %d LKP %d PNKD %d PTKP %d TPD %d XPL %d PCC %d\n" ,
735+ Config -> Kernel .Quirks .AppleCpuPmCfgLock ,
736+ Config -> Kernel .Quirks .AppleXcpmCfgLock ,
737+ Config -> Kernel .Quirks .AppleXcpmExtraMsrs ,
738+ Config -> Kernel .Quirks .AppleXcpmForceBoost ,
739+ Config -> Kernel .Quirks .CustomSmbiosGuid ,
740+ Config -> Kernel .Quirks .DisableIoMapper ,
741+ Config -> Kernel .Quirks .DisableLinkeditJettison ,
742+ Config -> Kernel .Quirks .DisableRtcChecksum ,
743+ Config -> Kernel .Emulate .DummyPowerManagement ,
744+ Config -> Kernel .Quirks .ExtendBTFeatureFlags ,
745+ Config -> Kernel .Quirks .ExternalDiskIcons ,
746+ Config -> Kernel .Quirks .IncreasePciBarSize ,
747+ Config -> Kernel .Quirks .ForceAquantiaEthernet ,
748+ Config -> Kernel .Quirks .LapicKernelPanic ,
749+ Config -> Kernel .Quirks .PanicNoKextDump ,
750+ Config -> Kernel .Quirks .PowerTimeoutKernelPanic ,
751+ Config -> Kernel .Quirks .ThirdPartyDrives ,
752+ Config -> Kernel .Quirks .XhciPortLimit ,
753+ Config -> Kernel .Quirks .ProvideCurrentCpuInfo ));
754+
711755 if ((Config -> Misc .Security .ExposeSensitiveData & OCS_EXPOSE_BOOT_PATH ) != 0 ) {
712756 OcStoreLoadPath (LoadPath );
713757 }
@@ -833,18 +877,21 @@ OcMiscLateInit (
833877 return EFI_SUCCESS ;
834878}
835879
836- #ifndef CLOVER_BUILD
880+ // #ifndef CLOVER_BUILD
837881VOID
838882OcMiscLoadSystemReport (
839883 IN OC_GLOBAL_CONFIG * Config ,
840884 IN EFI_HANDLE LoadHandle OPTIONAL
841885 )
842886{
887+ DEBUG ((DEBUG_INFO , "ProduceDebugReport1 LoadHandle=%d\n" , LoadHandle != NULL ));
843888 if ((LoadHandle != NULL ) && Config -> Misc .Debug .SysReport ) {
889+ DEBUG ((DEBUG_INFO , "ProduceDebugReport\n" ));
844890 ProduceDebugReport (LoadHandle );
845891 }
846892}
847893
894+ #ifndef CLOVER_BUILD
848895VOID
849896OcMiscBoot (
850897 IN OC_STORAGE_CONTEXT * Storage ,
0 commit comments