rsp.h
911 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
/*
* msp.i
*
* Mon Mar 21 21:15:39 PST 1994
*
* This file is some common definitions for MSP code.
* It enforces the programming model for the task lists.
*
*/
define( MSPBootBase, 0x10002000)
#define UPPER(x) eval( (x) / 0x10000 )
#define LOWER(x) eval( (x) & 0xffff )
#define MSPBOOTBASEHI UPPER(MSPBootBase)
#define MSPBOOTBASELO LOWER(MSPBootBase)
#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 MSPBOOTBASE, MSPBootBase # start of msp bootstrap
.label TASKBASE, 0x10002100 # 64 instructions for bootstrap
.name DMA_CACHE, $0 # these are CP0 registers
.name DMA_DRAM, $1 #
.name DMA_READ_LENGTH, $2
.name DMA_WRITE_LENGTH, $3