mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
fix entrypoint detection algo (nandboot, #514)
This commit is contained in:
parent
524a86e9a4
commit
cb4ea7217a
@ -137,12 +137,14 @@ _start:
|
|||||||
ldreq pc, =main
|
ldreq pc, =main
|
||||||
|
|
||||||
@ nandboot
|
@ nandboot
|
||||||
@ if ([0x1FFFE010] | [0x1FFFE014]) == 0
|
@ if ([0x1FFFE010] | [0x1FFFE014]) != 0
|
||||||
@ && ([0x1FFFE00C] & 0xFF) == 0
|
@ && ([0x1FFFE00C] & 0xFF) == 0
|
||||||
ldrd r4, r5, [r3]
|
ldrd r4, r5, [r3]
|
||||||
orrs r4, r4, r5
|
orrs r4, r4, r5
|
||||||
ldreqb r4, [r3, #-4]
|
ldreq pc, =main
|
||||||
cmpeq r4, #0
|
|
||||||
|
ldrb r4, [r3, #-4]
|
||||||
|
cmp r4, #0
|
||||||
ldreq r2, =ENTRY_NANDBOOT
|
ldreq r2, =ENTRY_NANDBOOT
|
||||||
|
|
||||||
@ unconditionally branch into the main C function
|
@ unconditionally branch into the main C function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user