1 // G10 loader - entry.S 2 .section .entry 3 4 LDR SP, =MEMBASEADDR 5 BL check_compat 6 7 // Turn OFF SD Card power 8 // to support autostart 9 10 //ROM:FFC3F634 LDR R1, =0xC0220000 11 //ROM:FFC3F638 MOV R0, #0x44 12 //ROM:FFC3F63C STR R0, [R1,#0x70] 13 14 15 // LDR R3, =0xC0220070 // G10 102a @FF85AA38 & FF85AA40 16 // MOV R2, #0x44 17 // STR R2, [R3] 18 19 // looks like idle cycle is required for proper shutdown 20 MOV R3, #0xF0000 // increased from 8000 to F0000 for extra delay 21 1: 22 SUB R3, R3, #1 23 CMP R3, #0 24 BNE 1b 25 26 // ordinary startup... 27 28 MOV SP, #0x1900 29 MOV R11, #0 30 B my_restart