1 typedef struct Conf Conf;
2 typedef struct Confmem Confmem;
3 typedef struct FPsave FPsave;
4 typedef struct ISAConf ISAConf;
5 typedef struct Label Label;
6 typedef struct Lock Lock;
7 typedef struct Mach Mach;
8 typedef struct Notsave Notsave;
9 typedef struct Page Page;
10 typedef struct PCArch PCArch;
11 typedef struct Pcidev Pcidev;
12 typedef struct PMMU PMMU;
13 typedef struct Proc Proc;
14 typedef struct Sys Sys;
15 typedef struct Ureg Ureg;
16 typedef struct Vctl Vctl;
19 #pragma incomplete Ureg
21 #define MAXSYSARG 5 /* for mount(fd, mpt, flag, arg, srv) */
24 * parameters for sysproc.c
26 #define AOUT_MAGIC Q_MAGIC
29 * machine dependent definitions used by ../port/dat.h
59 * This structure must agree with fpsave and fprestore asm routines
83 ulong nmach; /* processors */
84 ulong nproc; /* processes */
86 ulong npage; /* total physical pages of memory */
87 ulong upages; /* user page pool */
88 ulong nimage; /* number of page cache image headers */
89 ulong nswap; /* number of swap pages */
90 int nswppo; /* max # of pageouts per segment pass */
91 ulong copymode; /* 0 is copy on write, 1 is copy on reference */
92 int monitor; /* has display? */
93 ulong ialloc; /* bytes available for interrupt time allocation */
94 ulong pipeqsize; /* size in bytes of pipe queues */
98 * mmu goo in the Proc structure
107 * things saved in the Proc structure during a notify
114 #include "../port/portdat.h"
117 * machine dependent definitions not used by ../port/dat.h
123 #define VA(k) ((ulong)(k))
124 #define kmap(p) (KMap*)((p)->pa|KZERO)
129 /* OFFSETS OF THE FOLLOWING KNOWN BY l.s */
130 int machno; /* physical id of processor */
131 ulong splpc; /* pc that called splhi() */
132 Proc *proc; /* current process on this processor */
134 /* ordering from here on irrelevant */
136 ulong ticks; /* of the clock since boot time */
137 Label sched; /* scheduler wakeup */
138 Lock alarmlock; /* access to alarm list */
139 void *alarm; /* alarms bound to this clock */
144 Proc* readied; /* for runproc */
145 ulong schedticks; /* next forced context switch */
151 uvlong cyclefreq; /* Frequency of user readable cycle counter */
155 Perf perf; /* performance counters */
157 int tlbfault; /* only used by devproc; no access to tlb */
158 int tlbpurge; /* ... */
164 int flushmmu; /* make current proc flush it's mmu state */
167 ulong ptabbase; /* start of page table in kernel virtual space */
168 int slotgen; /* next pte (byte offset) when pteg is full */
169 int mmupid; /* next mmu pid to use */
190 * a parsed plan9.ini line
207 #define MACHP(n) ((Mach *)((int)&mach0+n*BY2PG))
210 extern register Mach *m;
211 extern register Proc *up;
213 extern FPsave initfp;