|
|
1.1 root 1: /*
2: * Copyright (c) 1988 University of Utah.
3: * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
4: * All rights reserved.
5: *
6: * This code is derived from software contributed to Berkeley by
7: * the Systems Programming Group of the University of Utah Computer
8: * Science Department.
9: *
10: * Redistribution is only permitted until one year after the first shipment
11: * of 4.4BSD by the Regents. Otherwise, redistribution and use in source and
12: * binary forms are permitted provided that: (1) source distributions retain
13: * this entire copyright notice and comment, and (2) distributions including
14: * binaries display the following acknowledgement: This product includes
15: * software developed by the University of California, Berkeley and its
16: * contributors'' in the documentation or other materials provided with the
17: * distribution and in all advertising materials mentioning features or use
18: * of this software. Neither the name of the University nor the names of
19: * its contributors may be used to endorse or promote products derived from
20: * this software without specific prior written permission.
21: * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
22: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
23: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
24: *
25: * from: Utah $Hdr: reg.h 1.5 89/04/11$
26: *
27: * @(#)reg.h 7.1 (Berkeley) 5/8/90
28: */
29:
30: /*
31: * Location of the users' stored
32: * registers relative to D0.
33: * Usage is u.u_ar0[XX].
34: */
35: #define D0 (0)
36: #define D1 (1)
37: #define D2 (2)
38: #define D3 (3)
39: #define D4 (4)
40: #define D5 (5)
41: #define D6 (6)
42: #define D7 (7)
43: #define A0 (8)
44: #define A1 (9)
45: #define A2 (10)
46: #define A3 (11)
47: #define A4 (12)
48: #define A5 (13)
49: #define A6 (14)
50: #define A7 (15)
51:
52: #define SP A7
53: #define PC (17)
54: #define PS (16)
55:
56: #ifdef IPCREG
57: #define NIPCREG 17
58: int ipcreg[NIPCREG] =
59: {D0,D1,D2,D3,D4,D5,D6,D7,A0,A1,A2,A3,A4,A5,A6,A7,PC};
60: #endif
61:
62: #ifdef KERNEL
63: /*
64: * Due to a mental lapse somewhere down the line, wait returns its values
65: * in strange registers. Kludge it up here so we don't have to in the
66: * machine-independent code.
67: */
68: #define R0 D1
69: #define R1 A0
70: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.