msp.h 911 Bytes

/*
 * 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