Last change
on this file since 1001 was
520,
checked in by bouyer, 11 years ago
|
Re-add the tests; reverting previous which was done at the wrong level (sorry)
|
File size:
939 bytes
|
Rev | Line | |
---|
[520] | 1 | /* multi-tty definitions */ |
---|
| 2 | #define TTY_BASE 0xd0200000 |
---|
| 3 | #define TTY_WRITE 0 |
---|
| 4 | #define TTY_STATUS 1 |
---|
| 5 | #define TTY_READ 2 |
---|
| 6 | |
---|
| 7 | /* vci_exit definitions */ |
---|
| 8 | #define EXIT_BASE 0xe0000000 |
---|
| 9 | |
---|
| 10 | #define BOOT_ADDRESS 0xbfc00000 |
---|
| 11 | #define EXCEP_ADDRESS 0xbfc00380 |
---|
| 12 | |
---|
| 13 | /* vci dma */ |
---|
| 14 | #define DMA_BASE 0xe8000000 |
---|
| 15 | #define DMA_SRC 0 |
---|
| 16 | #define DMA_DST 4 |
---|
| 17 | #define DMA_LEN 8 |
---|
| 18 | #define DMA_RESET 12 |
---|
| 19 | |
---|
| 20 | /* cop0 definitions */ |
---|
| 21 | #define COP_0_BADVADDR $8 |
---|
| 22 | #define COP0_STATUS $12 |
---|
| 23 | #define COP0_CAUSE $13 |
---|
| 24 | #define COP0_EXPC $14 |
---|
| 25 | |
---|
| 26 | /* easy print macros */ |
---|
| 27 | #define PRINT(str) \ |
---|
| 28 | la a0, str;\ |
---|
| 29 | jal print; \ |
---|
| 30 | nop |
---|
| 31 | |
---|
| 32 | #define PRINT_SYNC(str) \ |
---|
| 33 | la a0, str;\ |
---|
| 34 | jal print_sync; \ |
---|
| 35 | nop |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | #define PRINTX \ |
---|
| 40 | jal printx;\ |
---|
| 41 | nop |
---|
| 42 | |
---|
| 43 | #define PUTCHAR(c) li a0, c; sb a0, 0(k0) |
---|
| 44 | |
---|
| 45 | #define EXIT(a) \ |
---|
| 46 | li a0, a; \ |
---|
| 47 | sw a0, 4(k1); \ |
---|
| 48 | 1: j 1b; \ |
---|
| 49 | nop |
---|
| 50 | |
---|
| 51 | /* some magic numers to test */ |
---|
| 52 | #define MAGIC1 0xdead |
---|
| 53 | #define MAGIC2 0xbeef |
---|
| 54 | #define MAGIC3 0x900d |
---|
| 55 | #define MAGIC4 0xf00d |
---|
| 56 | |
---|
Note: See
TracBrowser
for help on using the repository browser.