Skip to content

Commit 50eaf52

Browse files
committed
Try to accelerate dldi with more patching, not yet working
1 parent 7c63662 commit 50eaf52

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

bootloader/source/hook.c

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,21 +81,23 @@ static const u32 homebrewSigPatched[5] = {
8181

8282
// accelerator patch for IPC_SYNC
8383
static const u32 homebrewAccelSig[4] = {
84-
0xD5060743, // LSLS R3, R0, #0x1D
85-
// BPL loc_37FA6DE
86-
0x881A4B07, // LDR R3, =0x4000004
87-
// LDRH R2, [R3]
88-
0x430A2120, // ...
89-
0x0C120412, // ...
84+
0x2201B510 , // .
85+
// MOVS R4, #1
86+
0xD0064220 , // .
87+
// .
88+
0x881A4B10 , // ...
89+
0x430A2108 , // ...
9090
};
9191

92+
93+
9294
static const u32 homebrewAccelSigPatched[4] = {
93-
0x4318231D, // MOVS R3, #0x1D
94-
// ORRS R0, R3
95-
0x881A4B07, // LDR R3, =0x4000004
96-
// LDRH R2, [R3]
97-
0x430A2120, // ...
98-
0x0C120412, // ...
95+
0x2201B510 , // .
96+
// MOVS R4, #1
97+
0x43180423 , // LSLS R3, R4, #0x10 // IRQ IPC SYNC
98+
// ORRS R0, R3 // ENABLE THE BIT
99+
0x881A4B10 , // ...
100+
0x430A2108 , // ...
99101
};
100102

101103
static const int MAX_HANDLER_SIZE = 50;

0 commit comments

Comments
 (0)