Removed useless variable.
This commit is contained in:
parent
216fdf846f
commit
2a117310b5
1 changed files with 0 additions and 4 deletions
4
mp.c
4
mp.c
|
@ -12,7 +12,6 @@
|
||||||
#include "proc.h"
|
#include "proc.h"
|
||||||
|
|
||||||
struct cpu cpus[NCPU];
|
struct cpu cpus[NCPU];
|
||||||
static struct cpu *bcpu;
|
|
||||||
int ismp;
|
int ismp;
|
||||||
int ncpu;
|
int ncpu;
|
||||||
uchar ioapicid;
|
uchar ioapicid;
|
||||||
|
@ -99,7 +98,6 @@ mpinit(void)
|
||||||
struct mpproc *proc;
|
struct mpproc *proc;
|
||||||
struct mpioapic *ioapic;
|
struct mpioapic *ioapic;
|
||||||
|
|
||||||
bcpu = &cpus[0];
|
|
||||||
if((conf = mpconfig(&mp)) == 0)
|
if((conf = mpconfig(&mp)) == 0)
|
||||||
return;
|
return;
|
||||||
ismp = 1;
|
ismp = 1;
|
||||||
|
@ -112,8 +110,6 @@ mpinit(void)
|
||||||
cprintf("mpinit: ncpu=%d apicid=%d\n", ncpu, proc->apicid);
|
cprintf("mpinit: ncpu=%d apicid=%d\n", ncpu, proc->apicid);
|
||||||
ismp = 0;
|
ismp = 0;
|
||||||
}
|
}
|
||||||
if(proc->flags & MPBOOT)
|
|
||||||
bcpu = &cpus[ncpu];
|
|
||||||
cpus[ncpu].id = ncpu;
|
cpus[ncpu].id = ncpu;
|
||||||
ncpu++;
|
ncpu++;
|
||||||
p += sizeof(struct mpproc);
|
p += sizeof(struct mpproc);
|
||||||
|
|
Loading…
Reference in a new issue