formatting nits
This commit is contained in:
parent
efb01c1dc0
commit
4fb684548a
4 changed files with 17 additions and 13 deletions
9
main.c
9
main.c
|
@ -74,8 +74,10 @@ main0(void)
|
||||||
mp_startthem();
|
mp_startthem();
|
||||||
|
|
||||||
// turn on timer
|
// turn on timer
|
||||||
if (ismp) lapic_timerinit();
|
if(ismp)
|
||||||
else pit8253_timerinit();
|
lapic_timerinit();
|
||||||
|
else
|
||||||
|
pit8253_timerinit();
|
||||||
|
|
||||||
// enable interrupts on the local APIC
|
// enable interrupts on the local APIC
|
||||||
lapic_enableintr();
|
lapic_enableintr();
|
||||||
|
@ -126,7 +128,8 @@ process0()
|
||||||
p0->cwd = iget(rootdev, 1);
|
p0->cwd = iget(rootdev, 1);
|
||||||
iunlock(p0->cwd);
|
iunlock(p0->cwd);
|
||||||
|
|
||||||
// dummy user memory to make copyproc() happy
|
// dummy user memory to make copyproc() happy.
|
||||||
|
// must be big enough to hold the init binary.
|
||||||
p0->sz = PAGE;
|
p0->sz = PAGE;
|
||||||
p0->mem = kalloc(p0->sz);
|
p0->mem = kalloc(p0->sz);
|
||||||
|
|
||||||
|
|
3
mp.c
3
mp.c
|
@ -191,7 +191,8 @@ mp_init(void)
|
||||||
int
|
int
|
||||||
mp_bcpu(void)
|
mp_bcpu(void)
|
||||||
{
|
{
|
||||||
if (ismp) return bcpu-cpus;
|
if(ismp)
|
||||||
|
return bcpu-cpus;
|
||||||
else return 0;
|
else return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue