root/loader/a3200/entry.S

/* [<][>][^][v][top][bottom][index][help] */
   1 .section .entry
   2 
   3     LDR     SP, =MEMBASEADDR
   4     BL      check_compat
   5 
   6 
   7 //a3200is LEDs
   8 //0xC02200D4 = Flash
   9 //0xC02200F0 = Green Power rear
  10 //0xC02200F4 = AF LED front
  11 
  12 /*
  13 // for testing, blink LED at 0xC02200F4 4 times
  14         LDR R3, =0xC02200F4
  15         MOV     R1,#4
  16 2:
  17         MOV R2, #0x46
  18         STR R2, [R3]
  19         MOV R0, #0x80000
  20 1:
  21         SUB R0,R0,#1
  22         CMP R0,#0
  23         BNE 1b
  24         MOV R2, #0x44
  25         STR R2, [R3]
  26         MOV R0, #0x80000
  27 1:
  28         SUB R0,R0,#1
  29         CMP R0,#0
  30         BNE 1b
  31 
  32         SUB R1,R1,#1
  33         CMP R1,#0
  34         BNE 2b
  35 // End of LED testing
  36 */
  37         
  38 // looks like idle cycle is required for proper shutdown
  39         MOV     R3, #0xF0000  
  40 1:
  41         SUB     R3, R3, #1
  42         CMP     R3, #0
  43         BNE     1b
  44 
  45 // ordinary startup...
  46 
  47         MOV     SP, #0x1900
  48         MOV     R11, #0
  49         B       my_restart

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