1 typedef struct Conf Conf;
2 typedef struct Confmem Confmem;
3 typedef struct FPsave FPsave;
5 typedef struct Label Label;
6 typedef struct Lock Lock;
7 typedef struct KMap KMap;
8 typedef struct MMMU MMMU;
9 typedef struct Mach Mach;
10 typedef struct Notsave Notsave;
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)
68 ulong nmach; /* processors */
69 ulong nproc; /* processes */
70 Confmem mem[1]; /* physical memory */
71 ulong npage; /* total physical pages of memory */
72 usize upages; /* user page pool */
73 ulong copymode; /* 0 is copy on write, 1 is copy on reference */
74 ulong ialloc; /* max interrupt time allocation in bytes */
75 ulong pipeqsize; /* size in bytes of pipe queues */
76 ulong nimage; /* number of page cache image headers */
77 ulong nswap; /* number of swap pages */
78 int nswppo; /* max # of pageouts per segment pass */
83 * things saved in the Proc structure during a notify
97 Page *mmuused, *mmufree;
103 #include "../port/portdat.h"
123 /* known to assembly */
124 int machno; /* physical id of processor */
125 uintptr splpc; /* pc of last caller to splhi */
126 Proc* proc; /* current process */
129 /* end of known to assembly */
131 int flushmmu; /* flush current proc mmu state */
133 ulong ticks; /* of the clock since boot time */
134 Label sched; /* scheduler wakeup */
135 Lock alarmlock; /* access to alarm list */
136 void* alarm; /* alarms bound to this clock */
139 Proc* readied; /* for runproc */
140 ulong schedticks; /* next forced context switch */
154 Perf perf; /* performance counters */
158 uvlong cpuhz; /* speed of cpu */
159 uvlong cyclefreq; /* Frequency of user readable cycle counter */
173 #define BUSUNKNOWN -1
177 char machs[MAXMACH]; /* active CPUs */
178 int exiting; /* shutdown */
181 extern register Mach* m; /* R10 */
182 extern register Proc* up; /* R9 */
184 extern int normalprint;
186 extern ulong *mpcore, *slcr;
192 * hardware info about a device
201 ulong intnum; /* interrupt number */
202 char *type; /* card type, malloced */
203 int nports; /* Number of ports */
204 Devport *ports; /* The ports themselves */