void
machon(uint cpu)
{
- ulong cpubit;
-
- cpubit = 1 << cpu;
lock(&active);
- if ((active.machs & cpubit) == 0) { /* currently off? */
+ if (active.machs[cpu] == 0) { /* currently off? */
+ active.machs[cpu] = 1;
conf.nmach++;
- active.machs |= cpubit;
}
unlock(&active);
}
void
machoff(uint cpu)
{
- ulong cpubit;
-
- cpubit = 1 << cpu;
lock(&active);
- if (active.machs & cpubit) { /* currently on? */
+ if (active.machs[cpu]) { /* currently on? */
+ active.machs[cpu] = 0;
conf.nmach--;
- active.machs &= ~cpubit;
}
unlock(&active);
}
// i8250console(); /* too early; see init0 */
pageinit(); /* prints "1020M memory: ⋯ */
- swapinit();
userinit();
/*
int
isaconfig(char *class, int ctlrno, ISAConf *isa)
{
- char cc[32], *p;
+ char cc[32], *p, *x;
int i;
snprint(cc, sizeof cc, "%s%d", class, ctlrno);
if(p == nil)
return 0;
+ x = nil;
+ kstrdup(&x, p);
+ p = x;
+
isa->type = "";
isa->nopt = tokenize(p, isa->opt, NISAOPT);
for(i = 0; i < isa->nopt; i++){
intrcpu(cpu);
#endif
}
+
+void
+setupwatchpts(Proc *, Watchpt *, int n)
+{
+ if(n > 0)
+ error("no watchpoints");
+}