Skip to content

Commit

Permalink
SandyBridge framebuffer uses _PlatformInformationList, not _gPlatform…
Browse files Browse the repository at this point in the history
…InformationList (#9)
  • Loading branch information
RehabMan authored and vit9696 committed Sep 17, 2018
1 parent 439d95b commit 308cb23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WhateverGreen/kern_igfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ bool IGFX::processKext(KernelPatcher &patcher, size_t index, mach_vm_address_t a
}

if (applyFramebufferPatch || dumpFramebufferToDisk || hdmiAutopatch) {
gPlatformInformationList = patcher.solveSymbol<void *>(index, "_gPlatformInformationList", address, size);
gPlatformInformationList = patcher.solveSymbol<void *>(index, cpuGeneration != CPUInfo::CpuGeneration::SandyBridge ? "_gPlatformInformationList" : "_PlatformInformationList", address, size);
if (gPlatformInformationList) {
framebufferStart = reinterpret_cast<uint8_t *>(address);
framebufferSize = size;
Expand Down

0 comments on commit 308cb23

Please sign in to comment.