| Rev | Line | |
|---|
| [1327] | 1 | // G10 loader - entry.S
|
|---|
| 2 | .section .entry
|
|---|
| 3 | // Turn OFF SD Card power
|
|---|
| 4 | // to support autostart
|
|---|
| 5 |
|
|---|
| 6 | LDR R3, =0xC0220018 // G10 102a @FF85AA38 & FF85AA40
|
|---|
| 7 | MOV R2, #0x44
|
|---|
| 8 | STR R2, [R3]
|
|---|
| 9 |
|
|---|
| 10 | // looks like idle cycle is required for proper shutdown
|
|---|
| 11 | MOV R3, #0xF0000 // increased from 8000 to F0000 for extra delay
|
|---|
| 12 | 1:
|
|---|
| 13 | SUB R3, R3, #1
|
|---|
| 14 | CMP R3, #0
|
|---|
| 15 | BNE 1b
|
|---|
| 16 |
|
|---|
| 17 | // ordinary startup...
|
|---|
| 18 |
|
|---|
| 19 | MOV SP, #0x1900
|
|---|
| 20 | MOV R11, #0
|
|---|
| 21 | B my_restart
|
|---|
Note: See
TracBrowser
for help on using the repository browser.