| 832 | } |
| 833 | |
| 834 | STATIC |
| 835 | BOOLEAN |
| 836 | FillinKextPatches (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) { |
no test coverage detected