Skip to content

Commit

Permalink
Support macOS Sonoma
Browse files Browse the repository at this point in the history
  • Loading branch information
al3xtjames committed Oct 28, 2023
1 parent d7d43ce commit 2099ee8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CXGBFixup/kern_cxgb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const char *CXGBFX::kextPaths[] { "/Library/Extensions/cxgb.kext" };

IOReturn CXGBFX::setPowerState(void *that, unsigned long state, IOService *service) {
auto ret = FunctionCast(setPowerState, callbackCXGBFX->orgSetPowerState)(that, state, service);
DBGLOG("cxgbfx", "setPowerState(state=%lu) -> %#lx", state, ret);
DBGLOG("cxgbfx", "setPowerState(state=%lu) -> %#x", state, ret);

if (ret == kIOPMAckImplied && state == 2) {
auto ret = FunctionCast(cxgb_change_mtu, callbackCXGBFX->orgChangeMTU)(that, callbackCXGBFX->savedMTU);
Expand Down
2 changes: 1 addition & 1 deletion CXGBFixup/kern_start.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ PluginConfiguration ADDPR(config) {
.betaArg = bootargBeta,
.betaArgNum = arrsize(bootargBeta),
.minKernel = KernelVersion::Catalina,
.maxKernel = KernelVersion::Ventura,
.maxKernel = KernelVersion::Sonoma,
.pluginStart = []() {
cxgbfx.init();
}
Expand Down

0 comments on commit 2099ee8

Please sign in to comment.