rsp.h
931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* rsp.h
*
* Mon Mar 21 21:15:39 PST 1994
*
* This file is some common definitions for RSP code.
* It enforces the programming model for the task lists.
*
*/
#define UPPER(x) eval( (x) / 0x10000 )
#define LOWER(x) eval( (x) & 0xffff )
#define RSPBOOTBASEHI 0x1000
#define RSPBOOTBASELO 0x2000
#define TASKBASEHI 0x1000
#define TASKBASELO 0x2100
#define HOSTSEMADDR 0x00001ffc
#define HOSTSEMADDRHI 0x0000 # semaphore address
#define HOSTSEMADDRLO 0x1ffc # semaphore address
.label ICACHEBASE, 0x10002000
.label DCACHEBASE, 0x10000000
#define DCACHEBASEHI 0x1000
#define DCACHEBASELO 0x0000
.label RSPBOOTBASE, 0x10002000 # start of rsp bootstrap
.label TASKBASE, 0x10002100 # 64 instructions for bootstrap
#define DMA_CACHE $0
#define DMA_DRAM $1
#define DMA_READ_LENGTH $2
#define DMA_WRITE_LENGTH $3
.name ret_reg, $31
.name rtn2, $30
#define ret jr ret_reg