source: trunk/softs/tests_ccvcache_v4/common/misc.h @ 259

Last change on this file since 259 was 232, checked in by alain, 13 years ago

Introducing the elementary tests for a TSAR mono-cluster
mono-processor platform with MMU using the vci_cc_vcache_v4
such as the "tsarv4_mono_mmu".
(assemby level tests written by Manuel Bouyer)

File size: 856 bytes
Line 
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 PRINTX \
33        jal     printx;\
34        nop
35
36#define PUTCHAR(c) li a0, c; sb a0, 0(k0)
37
38#define EXIT(a) \
39        li a0, a; \
40        sw a0, 4(k1); \
41        1:      j 1b; \
42        nop
43
44/* some magic numers to test */
45#define MAGIC1  0xdead
46#define MAGIC2  0xbeef
47#define MAGIC3  0x900d
48#define MAGIC4  0xf00d
49
Note: See TracBrowser for help on using the repository browser.