Skip to content

Commit

Permalink
Moved D9 launching fix to the loader
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraWright committed Mar 20, 2016
1 parent 9b9f784 commit 6b88953
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
3 changes: 3 additions & 0 deletions loader/source/start.s
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
void main(void){
mountSD();
setupCFW();
}

void startCFW(void){
if(!loadFirm()) return;
if(!patchFirm()) return;
launchFirm();
Expand Down
11 changes: 3 additions & 8 deletions source/start.s
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -53,10 +52,6 @@ _start:

bl main

mcr p15, 0, r4, c3, c0, 0 @ data bufferable

bl startCFW

bl shutdown

.die:
Expand Down

0 comments on commit 6b88953

Please sign in to comment.