mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-28 17:08:18 +01:00
Uncomment call to SetDevices(this) and SetVariablesForOSX(this)
Temporary panic is OcQuirks not found.
This commit is contained in:
parent
3877d988f3
commit
28a0dc1e8b
@ -865,9 +865,11 @@ FillinKextPatches (IN OUT KERNEL_AND_KEXT_PATCHES *Patches,
|
||||
|
||||
{
|
||||
const TagDict* OcQuirksDict = DictPointer->dictPropertyForKey("OcQuirks");
|
||||
if ( !OcQuirksDict ) panic("Cannot find OcQuirks under KernelAndKextPatches (OC kernel quirks)");
|
||||
if ( OcQuirksDict )
|
||||
{
|
||||
Prop = OcQuirksDict->propertyForKey("AppleCpuPmCfgLock");
|
||||
if ( !Prop ) panic("Cannot find AppleCpuPmCfgLock in OcQuirks under KernelAndKextPatches (OC kernel quirks)");
|
||||
if (Prop != NULL || gBootChanged) {
|
||||
Patches->OcKernelQuirks.AppleCpuPmCfgLock = IsPropertyNotNullAndTrue(Prop);
|
||||
}
|
||||
@ -2904,10 +2906,12 @@ GetEarlyUserSettings (
|
||||
}
|
||||
}
|
||||
|
||||
const TagDict* OcQuirksDict = CfgDict->dictPropertyForKey("Quirks");
|
||||
const TagDict* OcQuirksDict = CfgDict->dictPropertyForKey("OcQuirks");
|
||||
if ( !OcQuirksDict ) panic("Cannot find OcQuirks under root (OC booter quirks)");
|
||||
if (OcQuirksDict != NULL) {
|
||||
const TagStruct* Prop;
|
||||
Prop = OcQuirksDict->propertyForKey("AvoidRuntimeDefrag");
|
||||
if ( !Prop ) panic("Cannot find AvoidRuntimeDefrag in OcQuirks under root (OC booter quirks)");
|
||||
gSettings.ocBooterQuirks.AvoidRuntimeDefrag = IsPropertyNotNullAndTrue(Prop);
|
||||
gSettings.QuirksMask |= gSettings.ocBooterQuirks.AvoidRuntimeDefrag? QUIRK_DEFRAG:0;
|
||||
Prop = OcQuirksDict->propertyForKey( "DevirtualiseMmio");
|
||||
|
@ -1276,16 +1276,16 @@ VOID LOADER_ENTRY::StartLoader11()
|
||||
//
|
||||
DbgHeader("RestSetup macOS");
|
||||
//
|
||||
//// DBG("SetDevices\n");
|
||||
// SetDevices(this);
|
||||
//// DBG("SetFSInjection\n");
|
||||
// //SetFSInjection();
|
||||
// //PauseForKey(L"SetFSInjection");
|
||||
//// DBG("SetVariablesForOSX\n");
|
||||
// SetVariablesForOSX(this);
|
||||
//// DBG("SetVariablesForOSX\n");
|
||||
//// EventsInitialize(this);
|
||||
//// DBG("FinalizeSmbios\n");
|
||||
// DBG("SetDevices\n");
|
||||
SetDevices(this);
|
||||
// DBG("SetFSInjection\n");
|
||||
//SetFSInjection();
|
||||
//PauseForKey(L"SetFSInjection");
|
||||
// DBG("SetVariablesForOSX\n");
|
||||
SetVariablesForOSX(this);
|
||||
// DBG("SetVariablesForOSX\n");
|
||||
// EventsInitialize(this);
|
||||
// DBG("FinalizeSmbios\n");
|
||||
FinalizeSmbios();
|
||||
//
|
||||
// SetCPUProperties();
|
||||
@ -1364,7 +1364,7 @@ VOID LOADER_ENTRY::StartLoader11()
|
||||
// OcAppleDebugLogInstallProtocol(0);
|
||||
|
||||
|
||||
//debugStartImageWithOC(); // ok BS_I
|
||||
//debugStartImageWithOC();
|
||||
|
||||
DBG("Beginning OC\n");
|
||||
UINT64 CPUFrequencyFromART;
|
||||
|
Loading…
Reference in New Issue
Block a user