root/loader/g10/entry.S

/* [<][>][^][v][top][bottom][index][help] */
   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         LDR     R3, =0xC0220018         // G10 102a @FF85AA38 & FF85AA40
  11         MOV     R2, #0x44
  12         STR     R2, [R3]
  13 
  14 // looks like idle cycle is required for proper shutdown
  15         MOV     R3, #0xF0000            // increased from 8000 to F0000 for extra delay
  16 1:
  17         SUB R3, R3, #1
  18         CMP R3, #0
  19         BNE 1b
  20 
  21 // ordinary startup...
  22 
  23         MOV     SP, #0x1900
  24         MOV     R11, #0
  25         B       my_restart

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