Skip to content

Commit 9e9901f

Browse files
author
J P
committed
Patch error on Memory tab about this Mac
1 parent 2d07050 commit 9e9901f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

MacProMemoryNotificationDisabler/kern_start.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,21 @@ static const char *binPathSystemInformationCatalina = "/System/Applications/Util
3131

3232
static const uint32_t SectionActive = 1;
3333

34+
static const size_t patchBytesCountTooMuchSI = 5;
35+
static uint8_t findBytesTooMuchSI[patchBytesCountTooMuchSI] = { 0x84, 0xC0, 0x74, 0x64, 0x48 };
36+
static const uint8_t replaceBytesTooMuchSI[patchBytesCountTooMuchSI] = { 0x84, 0xC0, 0x75, 0x64, 0x48 };
37+
static UserPatcher::BinaryModPatch patchTooMuchSI {
38+
CPU_TYPE_X86_64,
39+
0,
40+
findBytesTooMuchSI,
41+
replaceBytesTooMuchSI,
42+
patchBytesCountTooMuchSI,
43+
0,
44+
1,
45+
UserPatcher::FileSegment::SegmentTextText,
46+
SectionActive
47+
};
48+
3449
// Find: 74 xx 4C 89 F7 E8 xx xx xx xx
3550
// Replace: 90 90 4C 89 F7 90 90 90 90 90
3651
static const size_t patchBytesCount = 10;
@@ -53,6 +68,7 @@ static UserPatcher::BinaryModPatch patchBytesMemorySlotNotification {
5368
// BinaryModInfo array containing all patches required.
5469
static UserPatcher::BinaryModInfo binaryPatchesCatalina[] {
5570
{ binPathMemorySlotNotification, &patchBytesMemorySlotNotification, 1},
71+
{ binPathSystemInformationCatalina, &patchTooMuchSI, 1 },
5672
};
5773

5874
// System Information process info.

0 commit comments

Comments
 (0)