xref: /csrg-svn/sys/tahoe/include/reg.h (revision 49429)
1*49429Sbostic /*-
2*49429Sbostic  * Copyright (c) 1986 The Regents of the University of California.
3*49429Sbostic  * All rights reserved.
4*49429Sbostic  *
5*49429Sbostic  * This code is derived from software contributed to Berkeley by
6*49429Sbostic  * Computer Consoles Inc.
7*49429Sbostic  *
8*49429Sbostic  * %sccs.include.proprietary.c%
9*49429Sbostic  *
10*49429Sbostic  *	@(#)reg.h	7.2 (Berkeley) 05/08/91
1134408Skarels  */
1234408Skarels 
1334408Skarels /*
1425682Ssam  * Location of the users' stored
1525682Ssam  * registers relative to PSL of 'trap' and 'syscall'.
1625682Ssam  * Usage is u.u_ar0[XX].
1725682Ssam  */
1825682Ssam 
1925682Ssam #define	PS	(-1)
2025682Ssam #define	PC	(-2)
2125682Ssam /*		(-3)	*/
2225682Ssam /*		(-4)	*/
2325682Ssam #define	RACL	(-5)
2425682Ssam #define	RACH	(-6)
2525682Ssam /*		(-7)	*/
2625682Ssam /*		(-8)	*/
2725682Ssam #define	SP	(-9)
2825682Ssam #define	R13	(-10)
2925682Ssam #define	FP	(-10)
3025682Ssam #define	R12	(-13)
3125682Ssam #define	R11	(-14)
3225682Ssam #define	R10	(-15)
3325682Ssam #define	R9	(-16)
3425682Ssam #define	R8	(-17)
3525682Ssam #define	R7	(-18)
3625682Ssam #define	R6	(-19)
3725682Ssam #define	R5	(-20)
3825682Ssam #define	R4	(-21)
3925682Ssam #define	R3	(-22)
4025682Ssam #define	R2	(-23)
4125682Ssam #define	R1	(-24)
4225682Ssam #define	R0	(-25)
4330378Skarels 
4430378Skarels #ifdef IPCREG
4530378Skarels #define	NIPCREG 18
4630378Skarels int ipcreg[NIPCREG] =
4730378Skarels 	{R0,R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,FP,SP,PC,RACH,RACL};
4830378Skarels #endif
49