Moved D9 launching fix to the loader
This commit is contained in:
parent
9b9f784c26
commit
6b88953517
@ -2,6 +2,9 @@
|
||||
.align 4
|
||||
.global _start
|
||||
_start:
|
||||
@ Fix payloads like Decrypt9
|
||||
mov r0, #0x5
|
||||
mcr p15, 0, r0, c3, c0, 0 @ data bufferable
|
||||
|
||||
@ Flush caches
|
||||
mov r0, #0
|
||||
|
@ -13,9 +13,6 @@
|
||||
void main(void){
|
||||
mountSD();
|
||||
setupCFW();
|
||||
}
|
||||
|
||||
void startCFW(void){
|
||||
if(!loadFirm()) return;
|
||||
if(!patchFirm()) return;
|
||||
launchFirm();
|
||||
|
@ -27,10 +27,9 @@ _start:
|
||||
mcr p15, 0, r5, c6, c5, 0
|
||||
mcr p15, 0, r6, c6, c6, 0
|
||||
mcr p15, 0, r7, c6, c7, 0
|
||||
mov r4, #0x25
|
||||
mov r0, #0x5
|
||||
mcr p15, 0, r4, c2, c0, 0 @ data cacheable
|
||||
mcr p15, 0, r4, c2, c0, 1 @ instruction cacheable
|
||||
mov r0, #0x25
|
||||
mcr p15, 0, r0, c2, c0, 0 @ data cacheable
|
||||
mcr p15, 0, r0, c2, c0, 1 @ instruction cacheable
|
||||
mcr p15, 0, r0, c3, c0, 0 @ data bufferable
|
||||
|
||||
@ Enable caches
|
||||
@ -53,10 +52,6 @@ _start:
|
||||
|
||||
bl main
|
||||
|
||||
mcr p15, 0, r4, c3, c0, 0 @ data bufferable
|
||||
|
||||
bl startCFW
|
||||
|
||||
bl shutdown
|
||||
|
||||
.die:
|
||||
|
Reference in New Issue
Block a user