diff --git a/Scripts/config_prodigy.py b/Scripts/config_prodigy.py index bb85df4..bc7ca9e 100644 --- a/Scripts/config_prodigy.py +++ b/Scripts/config_prodigy.py @@ -382,22 +382,7 @@ class ConfigProdigy: for kext in kexts: if kext.checked: if kext.name == "CpuTopologyRebuild": - kernel_patch.append({ - "Arch": "Any", - "Base": "_cpu_thread_alloc", - "Comment": "Force enable Hyper Threading for macOS Mojave or later", - "Count": 1, - "Enabled": True, - "Find": self.utils.hex_to_bytes("8B8894010000"), - "Identifier": "kernel", - "Limit": 0, - "Mask": self.utils.hex_to_bytes(""), - "MaxKernel": "", - "MinKernel": "18.0.0", - "Replace": self.utils.hex_to_bytes("B9FF00000090"), - "ReplaceMask": self.utils.hex_to_bytes(""), - "Skip": 0 - }) + kernel_patch.extend(self.g.get_kernel_patches("Hyper Threading Patches", self.g.hyper_threading_patches_url)) elif kext.name == "ForgedInvariant": if not "AMD" in cpu_manufacturer: kernel_patch.extend(self.g.get_kernel_patches("AMD Vanilla Patches", self.g.amd_vanilla_patches_url)[-6:-4]) @@ -520,7 +505,7 @@ class ConfigProdigy: elif kext.name == "VoodooI2C": boot_args.append("-vi2c-force-polling") elif kext.name == "CpuTopologyRebuild": - boot_args.append("-ctrsmt") + boot_args.append("ctrsmt=full") return " ".join(boot_args) diff --git a/Scripts/gathering_files.py b/Scripts/gathering_files.py index 4fc5a55..e42061d 100644 --- a/Scripts/gathering_files.py +++ b/Scripts/gathering_files.py @@ -17,6 +17,7 @@ class gatheringFiles: self.ocbinarydata_url = "https://github.com/acidanthera/OcBinaryData/archive/refs/heads/master.zip" self.amd_vanilla_patches_url = "https://raw.githubusercontent.com/AMD-OSX/AMD_Vanilla/beta/patches.plist" self.aquantia_macos_patches_url = "https://raw.githubusercontent.com/CaseySJ/Aquantia-macOS-Patches/refs/heads/main/CaseySJ-Aquantia-Patch-Sets-1-and-2.plist" + self.hyper_threading_patches_url = "https://github.com/b00t0x/CpuTopologyRebuild/raw/refs/heads/master/patches_ht.plist" self.temporary_dir = tempfile.mkdtemp() self.ock_files_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "OCK_Files") self.bootloader_kexts_data_path = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "bootloader_kexts_data.json")