1 .section .entry 2 3 LDR SP, =MEMBASEADDR 4 BL check_compat 5 6 7 // This doesn't seem necessary... 8 // 9 //// Turn OFF SD Card power 10 //// to support autostart 11 // LDR R3, =0xC0220018 12 // MOV R2, #0x44 13 // STR R2, [R3] 14 // 15 //// looks like idle cycle is required for proper shutdown 16 // MOV R3, #0x8000 17 //1: 18 // SUB R3, R3, #1 19 // CMP R3, #0 20 // BNE 1b 21 22 // ordinary startup... 23 24 MOV SP, #0x1900 25 MOV R11, #0 26 B my_restart