root/loader/sx10/entry.S

/* [<][>][^][v][top][bottom][index][help] */
   1 .section .entry
   2 
   3     LDR     SP, =MEMBASEADDR
   4     BL      check_compat
   5 
   6 
   7 // Turn OFF SD Card power
   8 // to support autostart
   9         LDR     R3, =0xC0220018
  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 
  22         MOV     SP, #0x1900
  23         MOV     R11, #0
  24         B       my_restart

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