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 usize 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 /* known to assembly */
119 int machno; /* physical id of processor */
120 uintptr splpc; /* pc of last caller to splhi */
121 Proc* proc; /* current process */
124 /* end of known to assembly */
126 int flushmmu; /* flush current proc mmu state */
128 ulong ticks; /* of the clock since boot time */
129 Label sched; /* scheduler wakeup */
130 Lock alarmlock; /* access to alarm list */
131 void* alarm; /* alarms bound to this clock */
134 Proc* readied; /* for runproc */
135 ulong schedticks; /* next forced context switch */
149 Perf perf; /* performance counters */
153 uvlong cpuhz; /* speed of cpu */
154 uvlong cyclefreq; /* Frequency of user readable cycle counter */
170 #define BUSUNKNOWN -1
174 char machs[MAXMACH]; /* active CPUs */
175 int exiting; /* shutdown */
178 extern register Mach* m; /* R10 */
179 extern register Proc* up; /* R9 */
181 extern int normalprint;
187 * hardware info about a device
196 ulong intnum; /* interrupt number */
197 char *type; /* card type, malloced */
198 int nports; /* Number of ports */
199 Devport *ports; /* The ports themselves */
202 #define mpcore ((ulong*)MPCORE_BASE)