BlueToolFixup: Set unconditional jump

This commit is contained in:
Mykola Grymalyuk
2022-05-16 20:51:19 -06:00
parent 93222701e3
commit 937aadd4f5
4 changed files with 6 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
## 0.4.6 ## 0.4.6
- Fix Bluetooth support in 12.4 Release - Fix Bluetooth support in 12.4 Release
- Applicable for BCM2046 and BCM2070 chipsets
- Fix backported to 0.4.4 release - Fix backported to 0.4.4 release
## 0.4.5 ## 0.4.5

View File

@@ -1,5 +1,5 @@
diff --git a/BrcmPatchRAM/BlueToolFixup.cpp b/BrcmPatchRAM/BlueToolFixup.cpp diff --git a/BrcmPatchRAM/BlueToolFixup.cpp b/BrcmPatchRAM/BlueToolFixup.cpp
index a6e3c69..16fcbcd 100644 index a6e3c69..ce39735 100644
--- a/BrcmPatchRAM/BlueToolFixup.cpp --- a/BrcmPatchRAM/BlueToolFixup.cpp
+++ b/BrcmPatchRAM/BlueToolFixup.cpp +++ b/BrcmPatchRAM/BlueToolFixup.cpp
@@ -48,6 +48,27 @@ bool BlueToolFixup::start(IOService *provider) { @@ -48,6 +48,27 @@ bool BlueToolFixup::start(IOService *provider) {
@@ -20,10 +20,10 @@ index a6e3c69..16fcbcd 100644
+ +
+static const uint8_t kSkipAddressCheckPatched[] = +static const uint8_t kSkipAddressCheckPatched[] =
+{ +{
+ 0x48, 0x89, 0xF3, // mov rbx, rsi + 0x48, 0x89, 0xF3, // mov rbx, rsi
+ 0xE8, 0xE3, 0xF3, 0xFE, 0xFF, // call sub_1000c5bc6 + 0xE8, 0xE3, 0xF3, 0xFE, 0xFF, // call sub_1000c5bc6
+ 0x85, 0xC0, // test eax, eax + 0x85, 0xC0, // test eax, eax
+ 0x75, 0x1D, // jne loc_1000d6804 + 0x72, 0x1D, // jb short loc_1000d6804
+}; +};
+ +
+ +