Skip to content

Commit 1ac7cd4

Browse files
committed
the patch Unlimit Xhci Port in menu
Signed-off-by: Slice <[email protected]>
1 parent fd2ef2c commit 1ac7cd4

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

Qemu/launch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ then
7070

7171
bios_file=("$(dirname "$qemu_path")"/bios*)
7272

73-
diskutil umount /dev/disk6s1
74-
diskutil umount /dev/disk6s2
75-
diskutil eject disk6
73+
diskutil umount /dev/disk8s1
74+
diskutil umount /dev/disk8s2
75+
diskutil eject disk8
7676

7777
"$qemu_path" \
7878
-L "$(dirname "$qemu_path")" \
@@ -94,7 +94,7 @@ diskutil eject disk6
9494
# -hdc /JiefLand/5.Devel/Clover/CloverEfi.vmw/ElCapitan.vmdk \
9595

9696
hdiutil attach ./QEMU-test2.img
97-
diskutil mount /dev/disk6s1
97+
diskutil mount /dev/disk8s1
9898

9999
fi
100100

isl-0.24.tar.xz

-1.84 MB
Binary file not shown.

rEFIt_UEFI/refit/menu.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ void FillInputs(XBool New)
435435
InputItems[InputItemsCount].ItemType = Hex; //131
436436
InputItems[InputItemsCount++].SValue.SWPrintf("0x%08X", gSettings.Smbios.SFakeCPU);
437437

438+
InputItems[InputItemsCount].ItemType = BoolValue; //132
439+
InputItems[InputItemsCount++].BValue = gSettings.Quirks.OcKernelQuirks.XhciPortLimit;
438440

439441
//menu for drop table
440442
if (GlobalConfig.ACPIDropTables.notEmpty()) {
@@ -1110,6 +1112,11 @@ void ApplyInputs(void)
11101112
gSettings.Smbios.SFakeCPU = (UINT32)StrHexToUint64(InputItems[i].SValue.wc_str());
11111113
DBG("set FakeCPUID=%X\n", gSettings.Smbios.SFakeCPU);
11121114
}
1115+
i++; //132
1116+
if (InputItems[i].Valid) {
1117+
gSettings.Quirks.OcKernelQuirks.XhciPortLimit = InputItems[i].BValue != 0;
1118+
DBG("applied XhciPortLimit=%s\n", gSettings.Quirks.OcKernelQuirks.XhciPortLimit ? "Y" : "N" );
1119+
}
11131120

11141121
if (NeedSave) {
11151122
ApplySettings();
@@ -1960,6 +1967,7 @@ REFIT_ABSTRACT_MENU_ENTRY* SubMenuBinaries()
19601967
// SubScreen->AddMenuItemInput(45, "No 8 Apples Patch", false);
19611968
SubScreen->AddMenuItemInput(61, "Dell SMBIOS Patch", false);
19621969
SubScreen->AddMenuItemInput(115, "Block SkywalkFamily", false);
1970+
SubScreen->AddMenuItemInput(132, "Unlimit Xhci Ports", false);
19631971
// SubScreen->AddMenuItemInput(115, "No Caches", false);
19641972
// SubScreen->AddMenuItemInput(44, "Kext patching allowed", false);
19651973
SubScreen->AddMenuEntry(SubMenuKextPatches(), true);

0 commit comments

Comments
 (0)