rsp.h 931 Bytes

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