Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* $Id: testrescue.S,v 1.1 2001/12/17 13:59:27 bjornw Exp $ |
| 2 | * |
| 3 | * Simple testcode to download by the rescue block. |
| 4 | * Just lits some LEDs to show it was downloaded correctly. |
| 5 | * |
| 6 | * Copyright (C) 1999 Axis Communications AB |
| 7 | */ |
| 8 | |
| 9 | #define ASSEMBLER_MACROS_ONLY |
| 10 | #include <asm/sv_addr_ag.h> |
| 11 | |
| 12 | .text |
| 13 | |
| 14 | nop |
| 15 | nop |
| 16 | moveq -1, $r2 |
| 17 | move.b $r2, [R_PORT_PA_DIR] |
| 18 | moveq 0, $r2 |
| 19 | move.b $r2, [R_PORT_PA_DATA] |
| 20 | |
| 21 | endless: |
| 22 | nop |
| 23 | ba endless |
| 24 | nop |
| 25 | |
| 26 | |