root/loader/a495/entry.S

/* [<][>][^][v][top][bottom][index][help] */
   1 .section .entry
   2 
   3     LDR     SP, =MEMBASEADDR
   4     BL      check_compat
   5 
   6 
   7 // ROM:FFFF1070, Turn OFF SD Card power
   8 // to support autostart
   9         LDR     R3, =0xC022007C
  10         MOV     R2, #0x44
  11         STR     R2, [R3]
  12         
  13 // looks like idle cycle is required for proper shutdown
  14         MOV     R3, #0x8000
  15 1:
  16         SUB         R3, R3, #1
  17         CMP         R3, #0
  18         BNE         1b
  19 
  20 // ordinary startup...
  21         MOV     SP, #0x1900
  22         MOV     R11, #0
  23         B           my_restart

/* [<][>][^][v][top][bottom][index][help] */