date and time created 91/04/16 14:59:08 by bostic
[unix-history] / usr / src / usr.bin / pascal / pdx / process / pxinfo.h
CommitLineData
f9e58c14
DF
1/*
2 * Copyright (c) 1980 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 *
24ba2374 6 * @(#)pxinfo.h 5.3 (Berkeley) %G%
f9e58c14 7 */
efa691f9
ML
8
9/*
10 * This is the information we get after the initial trap that px does.
11 * By passing the "-d" flag, we cause px to call a procedure with the
12 * the following information:
13 *
14 * address of the display
15 * address of the display pointer
16 * address of the beginning of the object code
17 *
24ba2374
KM
18 * the address of the program counter used in the interpreter procedure
19 * (px actually keeps the pc in a register if it can, but stores
20 * it in this location each time around the interpreter loop.)
21 * the address of the main interpreter loop (past the store of pc)
efa691f9
ML
22 */
23
82d3cd01
KM
24#ifdef tahoe
25typedef struct {
26 short trp_savemask;
27 short trp_removed;
28 int trp_oldfp;
29 ADDRESS *disp;
30 ADDRESS *dp;
31 ADDRESS objstart;
24ba2374 32 ADDRESS pcaddr;
82d3cd01
KM
33 ADDRESS loopaddr;
34} TRAPARGS;
35#else
efa691f9
ML
36typedef struct {
37 int nargs;
38 ADDRESS *disp;
39 ADDRESS *dp;
40 ADDRESS objstart;
24ba2374 41 ADDRESS pcaddr;
efa691f9
ML
42 ADDRESS loopaddr;
43} TRAPARGS;
82d3cd01 44#endif
efa691f9
ML
45
46ADDRESS *DISPLAY;
47ADDRESS *DP;
48ADDRESS ENDOFF;
24ba2374 49ADDRESS PCADDR;
efa691f9 50ADDRESS LOOPADDR;
82d3cd01
KM
51#ifdef tahoe
52ADDRESS RETLOC;
53ADDRESS INTFP;
54#endif