MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / FillinKextPatches

Function FillinKextPatches

rEFIt_UEFI/Platform/Settings.cpp:834–1378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832}
833
834STATIC
835BOOLEAN
836FillinKextPatches (IN OUT KERNEL_AND_KEXT_PATCHES *Patches,
837 const TagDict* DictPointer)
838{
839 const TagStruct* Prop;
840 const TagArray* arrayProp;
841 // UINTN i;
842
843 if (Patches == NULL || DictPointer == NULL) {
844 return FALSE;
845 }
846
847 Prop = DictPointer->propertyForKey("Debug");
848 if (Prop != NULL || gBootChanged) {
849 Patches->KPDebug = IsPropertyNotNullAndTrue(Prop);
850 }
851/*
852 Prop = GetProperty(DictPointer, "KernelCpu");
853 if (Prop != NULL || gBootChanged) {
854 Patches->KPKernelCpu = IsPropertyTrue(Prop);
855 }
856*/
857 Prop = DictPointer->propertyForKey("KernelLapic");
858 if (Prop != NULL || gBootChanged) {
859 Patches->KPKernelLapic = IsPropertyNotNullAndTrue(Prop);
860 }
861
862 Prop = DictPointer->propertyForKey("KernelXCPM");
863 if (Prop != NULL || gBootChanged) {
864 Patches->KPKernelXCPM = IsPropertyNotNullAndTrue(Prop);
865 if (IsPropertyNotNullAndTrue(Prop)) {
866 DBG("KernelXCPM: enabled\n");
867 }
868 }
869
870 Prop = DictPointer->propertyForKey("KernelPm");
871 if (Prop != NULL || gBootChanged) {
872 Patches->KPKernelPm = IsPropertyNotNullAndTrue(Prop);
873 }
874
875 Prop = DictPointer->propertyForKey("PanicNoKextDump");
876 if (Prop != NULL || gBootChanged) {
877 Patches->KPPanicNoKextDump = IsPropertyNotNullAndTrue(Prop);
878 }
879
880 Prop = DictPointer->propertyForKey("AppleIntelCPUPM");
881 if (Prop != NULL || gBootChanged) {
882 Patches->KPAppleIntelCPUPM = IsPropertyNotNullAndTrue(Prop);
883 }
884 //anyway
885 if (NeedPMfix) {
886 Patches->KPKernelPm = TRUE;
887 Patches->KPAppleIntelCPUPM = TRUE;
888 }
889
890 Prop = DictPointer->propertyForKey("AppleRTC");
891 if (Prop != NULL || gBootChanged) {

Callers 2

GetEarlyUserSettingsFunction · 0.85
GetUserSettingsFunction · 0.85

Calls 15

IsPropertyNotNullAndTrueFunction · 0.85
GetPropertyAsIntegerFunction · 0.85
GetDataSettingFunction · 0.85
AsciiStrSizeFunction · 0.85
propertyForKeyMethod · 0.80
stealValueFromMethod · 0.80
arrayPropertyForKeyMethod · 0.80
dictElementAtMethod · 0.80
memsetMethod · 0.80
ncpyMethod · 0.80
FreePoolFunction · 0.50

Tested by

no test coverage detected