-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #403 from TuxSH/master
Add a lot of TWL_FIRM patches, see https://gist.github.com/Steveice10/8a6965c59192ac970832
- Loading branch information
Showing
8 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
twl_p9 = 0x8014A00; | ||
|
||
SECTIONS | ||
{ | ||
. = 0x080182C0; | ||
. = twl_p9 + 0x38C0; | ||
.patch.p9.sig : { *(.patch.p9.sig) } | ||
|
||
. = twl_p9 + 0x13656; | ||
.patch.p9.sha_compare_stub : { *(.patch.p9.sha_compare_stub) } | ||
|
||
. = twl_p9 + 0x13164; | ||
.patch.p9.whitelist_check_disable : { *(.patch.p9.whitelist_check_disable) } | ||
|
||
. = twl_p9 + 0x1355E; | ||
.patch.p9.cartridge_save_type_check_disable : { *(.patch.p9.cartridge_save_type_check_disable) } | ||
|
||
. = twl_p9 + 0x1356A; | ||
.patch.p9.dsi_cartridge_save_exploit_check_disable : { *(.patch.p9.dsi_cartridge_save_exploit_check_disable) } | ||
|
||
. = twl_p9 + 0x13002; | ||
.patch.p9.ninlogo_check_disable : { *(.patch.p9.ninlogo_check_disable) } | ||
|
||
. = twl_p9 + 0x13552; | ||
.patch.p9.blacklist_check_disable : { *(.patch.p9.blacklist_check_disable) } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@ Blacklist check patch found by TuxSH (see https://gist.github.com/Steveice10/8a6965c59192ac970832). | ||
@ Disables the cartridge blacklist check (mostly, if not entirely, demo carts). This check was introduced in firmware 4.4.0-10. | ||
|
||
.section .patch.p9.blacklist_check_disable, "a" | ||
.thumb | ||
mov r0, #1 | ||
nop | ||
.pool |
8 changes: 8 additions & 0 deletions
8
rxmode/twl_firm/source/p9_cartridge_save_type_check_disable.s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@ Cartridge save type check patch found by TuxSH (see https://gist.github.com/Steveice10/8a6965c59192ac970832). | ||
@ This check was introduced firmware 4.4.0-10, and blocked most DSi-compatible flashcarts as a result. | ||
|
||
.section .patch.p9.cartridge_save_type_check_disable, "a" | ||
.thumb | ||
mov r0, #1 | ||
nop | ||
.pool |
8 changes: 8 additions & 0 deletions
8
rxmode/twl_firm/source/p9_dsi_cartridge_save_exploit_check_disable.s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@ DSi cartridge save file exploit check patch found by Steveice10 (see https://gist.github.com/Steveice10/8a6965c59192ac970832). | ||
@ This check was blocking, for instance, the "Classic Word Games" and "Cooking Coach" DSi-mode exploits. | ||
|
||
.section .patch.p9.dsi_cartridge_save_exploit_check_disable, "a" | ||
.thumb | ||
mov r0, #1 | ||
nop | ||
.pool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@ Nintendo logo check patch found by Steveice10 (see https://gist.github.com/Steveice10/8a6965c59192ac970832) | ||
@ It isn't generally needed | ||
|
||
.section .patch.p9.ninlogo_check_disable, "a" | ||
.thumb | ||
mov r0, #0 | ||
nop | ||
.pool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@ Signature/hash patch found by Steveice10, see https://gist.github.com/Steveice10/8a6965c59192ac970832 | ||
@ This stubs the function commonly used to compare SHA hashes to always succeed. It's at least used to check SRL (DSi titles) signatures and SHA hashes in general. | ||
|
||
.section .patch.p9.sha_compare_stub, "a" | ||
.thumb | ||
mov r0, #1 | ||
bx lr | ||
.pool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@ Whitelist check patch found by Steveice10, see https://gist.github.com/Steveice10/8a6965c59192ac970832 | ||
|
||
.section .patch.p9.whitelist_check_disable, "a" | ||
.thumb | ||
mov r0, #0 | ||
nop | ||
.pool |