Moved D9 launching fix to the loader

This commit is contained in:
Aurora 2016-03-20 22:03:43 +01:00
parent 9b9f784c26
commit 6b88953517
3 changed files with 6 additions and 11 deletions

View File

@ -2,6 +2,9 @@
.align 4 .align 4
.global _start .global _start
_start: _start:
@ Fix payloads like Decrypt9
mov r0, #0x5
mcr p15, 0, r0, c3, c0, 0 @ data bufferable
@ Flush caches @ Flush caches
mov r0, #0 mov r0, #0

View File

@ -13,9 +13,6 @@
void main(void){ void main(void){
mountSD(); mountSD();
setupCFW(); setupCFW();
}
void startCFW(void){
if(!loadFirm()) return; if(!loadFirm()) return;
if(!patchFirm()) return; if(!patchFirm()) return;
launchFirm(); launchFirm();

View File

@ -27,10 +27,9 @@ _start:
mcr p15, 0, r5, c6, c5, 0 mcr p15, 0, r5, c6, c5, 0
mcr p15, 0, r6, c6, c6, 0 mcr p15, 0, r6, c6, c6, 0
mcr p15, 0, r7, c6, c7, 0 mcr p15, 0, r7, c6, c7, 0
mov r4, #0x25 mov r0, #0x25
mov r0, #0x5 mcr p15, 0, r0, c2, c0, 0 @ data cacheable
mcr p15, 0, r4, c2, c0, 0 @ data cacheable mcr p15, 0, r0, c2, c0, 1 @ instruction cacheable
mcr p15, 0, r4, c2, c0, 1 @ instruction cacheable
mcr p15, 0, r0, c3, c0, 0 @ data bufferable mcr p15, 0, r0, c3, c0, 0 @ data bufferable
@ Enable caches @ Enable caches
@ -53,10 +52,6 @@ _start:
bl main bl main
mcr p15, 0, r4, c3, c0, 0 @ data bufferable
bl startCFW
bl shutdown bl shutdown
.die: .die: