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

Function DumpKernelAndKextPatches

rEFIt_UEFI/refit/main.cpp:374–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372 */
373#ifdef DUMP_KERNEL_KEXT_PATCHES
374VOID DumpKernelAndKextPatches(KERNEL_AND_KEXT_PATCHES *Patches)
375{
376 if (!Patches) {
377 DBG("Kernel and Kext Patches null pointer\n");
378 return;
379 }
380 DBG("Kernel and Kext Patches at %p:\n", Patches);
381 DBG("\tAllowed: %c\n", gSettings.KextPatchesAllowed ? 'y' : 'n');
382 DBG("\tDebug: %c\n", Patches->KPDebug ? 'y' : 'n');
383// DBG("\tKernelCpu: %c\n", Patches->KPKernelCpu ? 'y' : 'n');
384 DBG("\tKernelLapic: %c\n", Patches->KPKernelLapic ? 'y' : 'n');
385 DBG("\tKernelXCPM: %c\n", Patches->KPKernelXCPM ? 'y' : 'n');
386 DBG("\tKernelPm: %c\n", Patches->KPKernelPm ? 'y' : 'n');
387 DBG("\tAppleIntelCPUPM: %c\n", Patches->KPAppleIntelCPUPM ? 'y' : 'n');
388 DBG("\tAppleRTC: %c\n", Patches->KPAppleRTC ? 'y' : 'n');
389 // Dell smbios truncate fix
390 DBG("\tDellSMBIOSPatch: %c\n", Patches->KPDELLSMBIOS ? 'y' : 'n');
391 DBG("\tFakeCPUID: 0x%X\n", Patches->FakeCPUID);
392 DBG("\tATIController: %s\n", (Patches->KPATIConnectorsController == NULL) ? "(null)": Patches->KPATIConnectorsController);
393 DBG("\tATIDataLength: %d\n", Patches->KPATIConnectorsDataLen);
394 DBG("\t%d Kexts to load\n", Patches->ForceKexts.size());
395 if (Patches->ForceKexts) {
396 INTN i = 0;
397 for (; i < Patches->ForceKexts.size(); ++i) {
398 DBG("\t KextToLoad[%d]: %ls\n", i, Patches->ForceKexts[i]);
399 }
400 }
401 DBG("\t%d Kexts to patch\n", Patches->KextPatches.size());
402 if (Patches->KextPatches) {
403 INTN i = 0;
404 for (; i < Patches->KextPatches.size(); ++i) {
405 if (Patches->KextPatches[i].IsPlistPatch) {
406 DBG("\t KextPatchPlist[%d]: %d bytes, %s\n", i, Patches->KextPatches[i].DataLen, Patches->KextPatches[i].Name);
407 } else {
408 DBG("\t KextPatch[%d]: %d bytes, %s\n", i, Patches->KextPatches[i].DataLen, Patches->KextPatches[i].Name);
409 }
410 }
411 }
412}
413#endif
414VOID LOADER_ENTRY::FilterKextPatches()
415{

Callers 1

loader.cppFile · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected