xref: /csrg-svn/sys/hp300/include/reg.h (revision 41474)
1*41474Smckusick /*
2*41474Smckusick  * Copyright (c) 1988 University of Utah.
3*41474Smckusick  * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
4*41474Smckusick  * All rights reserved.
5*41474Smckusick  *
6*41474Smckusick  * This code is derived from software contributed to Berkeley by
7*41474Smckusick  * the Systems Programming Group of the University of Utah Computer
8*41474Smckusick  * Science Department.
9*41474Smckusick  *
10*41474Smckusick  * %sccs.include.redist.c%
11*41474Smckusick  *
12*41474Smckusick  * from: Utah $Hdr: reg.h 1.5 89/04/11$
13*41474Smckusick  *
14*41474Smckusick  *	@(#)reg.h	7.1 (Berkeley) 05/08/90
15*41474Smckusick  */
16*41474Smckusick 
17*41474Smckusick /*
18*41474Smckusick  * Location of the users' stored
19*41474Smckusick  * registers relative to D0.
20*41474Smckusick  * Usage is u.u_ar0[XX].
21*41474Smckusick  */
22*41474Smckusick #define	D0	(0)
23*41474Smckusick #define	D1	(1)
24*41474Smckusick #define	D2	(2)
25*41474Smckusick #define	D3	(3)
26*41474Smckusick #define	D4	(4)
27*41474Smckusick #define	D5	(5)
28*41474Smckusick #define	D6	(6)
29*41474Smckusick #define	D7	(7)
30*41474Smckusick #define	A0	(8)
31*41474Smckusick #define	A1	(9)
32*41474Smckusick #define	A2	(10)
33*41474Smckusick #define	A3	(11)
34*41474Smckusick #define	A4	(12)
35*41474Smckusick #define	A5	(13)
36*41474Smckusick #define	A6	(14)
37*41474Smckusick #define	A7	(15)
38*41474Smckusick 
39*41474Smckusick #define	SP	A7
40*41474Smckusick #define	PC	(17)
41*41474Smckusick #define	PS	(16)
42*41474Smckusick 
43*41474Smckusick #ifdef IPCREG
44*41474Smckusick #define	NIPCREG 17
45*41474Smckusick int ipcreg[NIPCREG] =
46*41474Smckusick 	{D0,D1,D2,D3,D4,D5,D6,D7,A0,A1,A2,A3,A4,A5,A6,A7,PC};
47*41474Smckusick #endif
48*41474Smckusick 
49*41474Smckusick #ifdef KERNEL
50*41474Smckusick /*
51*41474Smckusick  * Due to a mental lapse somewhere down the line, wait returns its values
52*41474Smckusick  * in strange registers.  Kludge it up here so we don't have to in the
53*41474Smckusick  * machine-independent code.
54*41474Smckusick  */
55*41474Smckusick #define	R0	D1
56*41474Smckusick #define	R1	A0
57*41474Smckusick #endif
58