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 * %sccs.include.redist.c% 11 * 12 * from: Utah $Hdr: reg.h 1.1 90/07/09$ 13 * 14 * @(#)reg.h 7.3 (Berkeley) 12/27/92 15 */ 16 17 /* 18 * Location of the users' stored 19 * registers relative to D0. 20 * Usage is u.u_ar0[XX]. 21 */ 22 #define D0 (0) 23 #define D1 (1) 24 #define D2 (2) 25 #define D3 (3) 26 #define D4 (4) 27 #define D5 (5) 28 #define D6 (6) 29 #define D7 (7) 30 #define A0 (8) 31 #define A1 (9) 32 #define A2 (10) 33 #define A3 (11) 34 #define A4 (12) 35 #define A5 (13) 36 #define A6 (14) 37 #define A7 (15) 38 39 #define SP A7 40 #define PC (17) 41 #define PS (16) 42 43 #ifdef IPCREG 44 #define NIPCREG 16 45 int ipcreg[NIPCREG] = 46 {D0,D1,D2,D3,D4,D5,D6,D7,A0,A1,A2,A3,A4,A5,A6,A7}; 47 #endif 48 49 #ifdef KERNEL 50 /* 51 * Due to a mental lapse somewhere down the line, wait returns its values 52 * in strange registers. Kludge it up here so we don't have to in the 53 * machine-independent code. 54 */ 55 #define R0 D1 56 #define R1 A0 57 #endif 58