struct Confmem
{
uintptr base;
- usize npage;
+ ulong npage;
uintptr limit;
uintptr kbase;
uintptr klimit;
ulong nproc; /* processes */
Confmem mem[1]; /* physical memory */
ulong npage; /* total physical pages of memory */
- usize upages; /* user page pool */
+ ulong upages; /* user page pool */
ulong copymode; /* 0 is copy on write, 1 is copy on reference */
ulong ialloc; /* max interrupt time allocation in bytes */
ulong pipeqsize; /* size in bytes of pipe queues */
{
int machno; /* physical id of processor */
uintptr splpc; /* pc of last caller to splhi */
-
- Proc* proc; /* current process */
+ Proc* proc; /* current process on this processor */
MMMU;
- int flushmmu; /* flush current proc mmu state */
-
- ulong ticks; /* of the clock since boot time */
- Label sched; /* scheduler wakeup */
- Lock alarmlock; /* access to alarm list */
- void* alarm; /* alarms bound to this clock */
+ /* end of offsets known to asm */
- Proc* readied; /* for runproc */
- ulong schedticks; /* next forced context switch */
+ PMach;
int cputype;
ulong delayloop;
-
- /* stats */
- int tlbfault;
- int tlbpurge;
- int pfault;
- int cs;
- int syscall;
- int load;
- int intr;
- uvlong fastclock; /* last sampled value */
- uvlong inidle; /* time spent in idlehands() */
- ulong spuriousintr;
- int lastintr;
- int ilockdepth;
- Perf perf; /* performance counters */
-
-
int cpumhz;
uvlong cpuhz; /* speed of cpu */
- uvlong cyclefreq; /* Frequency of user readable cycle counter */
/* vfp2 or vfp3 fpu */
int havefp;
u32int smon[5]; /* probably not needed */
u32int ssys[5];
- int stack[1];
+ uintptr stack[1];
};
/*