1 /*- 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)pxinfo.h 8.1 (Berkeley) 06/06/93 8 */ 9 10 /* 11 * This is the information we get after the initial trap that px does. 12 * By passing the "-d" flag, we cause px to call a procedure with the 13 * the following information: 14 * 15 * address of the display 16 * address of the display pointer 17 * address of the beginning of the object code 18 * 19 * the address of the program counter used in the interpreter procedure 20 * (px actually keeps the pc in a register if it can, but stores 21 * it in this location each time around the interpreter loop.) 22 * the address of the main interpreter loop (past the store of pc) 23 */ 24 25 #ifdef tahoe 26 typedef struct { 27 short trp_savemask; 28 short trp_removed; 29 int trp_oldfp; 30 ADDRESS *disp; 31 ADDRESS *dp; 32 ADDRESS objstart; 33 ADDRESS pcaddr; 34 ADDRESS loopaddr; 35 } TRAPARGS; 36 #else 37 typedef struct { 38 int nargs; 39 ADDRESS *disp; 40 ADDRESS *dp; 41 ADDRESS objstart; 42 ADDRESS pcaddr; 43 ADDRESS loopaddr; 44 } TRAPARGS; 45 #endif 46 47 ADDRESS *DISPLAY; 48 ADDRESS *DP; 49 ADDRESS ENDOFF; 50 ADDRESS PCADDR; 51 ADDRESS LOOPADDR; 52 #ifdef tahoe 53 ADDRESS RETLOC; 54 ADDRESS INTFP; 55 #endif 56