1 typedef struct Conf Conf;
2 typedef struct Confmem Confmem;
3 typedef struct FPsave FPsave;
4 typedef struct PFPU PFPU;
6 typedef struct Label Label;
7 typedef struct Lock Lock;
8 typedef struct KMap KMap;
9 typedef struct MMMU MMMU;
10 typedef struct Mach Mach;
11 typedef struct Page Page;
12 typedef struct Proc Proc;
13 typedef struct PMMU PMMU;
14 typedef struct Ureg Ureg;
15 typedef struct ISAConf ISAConf;
18 #pragma incomplete Ureg
20 #define MAXSYSARG 5 /* for mount(fd, mpt, flag, arg, srv) */
22 #define AOUT_MAGIC (E_MAGIC)
70 ulong nmach; /* processors */
71 ulong nproc; /* processes */
72 Confmem mem[2]; /* physical memory */
73 ulong npage; /* total physical pages of memory */
74 ulong upages; /* user page pool */
75 ulong copymode; /* 0 is copy on write, 1 is copy on reference */
76 ulong ialloc; /* max interrupt time allocation in bytes */
77 ulong pipeqsize; /* size in bytes of pipe queues */
78 ulong nimage; /* number of page cache image headers */
79 ulong nswap; /* number of swap pages */
80 int nswppo; /* max # of pageouts per segment pass */
92 Page *mmuused, *mmufree;
98 #include "../port/portdat.h"
118 int machno; /* physical id of processor */
119 uintptr splpc; /* pc of last caller to splhi */
120 Proc* proc; /* current process */
123 /* end of known to assembly */
132 uvlong cpuhz; /* speed of cpu */
146 #define BUSUNKNOWN -1
150 char machs[MAXMACH]; /* active CPUs */
151 int exiting; /* shutdown */
154 extern register Mach* m; /* R10 */
155 extern register Proc* up; /* R9 */
157 extern int normalprint;
159 extern ulong *mpcore, *slcr;
165 * hardware info about a device
174 ulong intnum; /* interrupt number */
175 char *type; /* card type, malloced */
176 int nports; /* Number of ports */
177 Devport *ports; /* The ports themselves */