summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/main.c b/main.c
index fbad920..f4914db 100644
--- a/main.c
+++ b/main.c
@@ -12,22 +12,22 @@ static void mpmain(void) __attribute__((noreturn));
int
main(void)
{
- mp_init(); // collect info about this machine
- lapic_init(mp_bcpu());
+ mpinit(); // collect info about this machine
+ lapicinit(mpbcpu());
cprintf("\ncpu%d: starting xv6\n\n", cpu());
pinit(); // process table
binit(); // buffer cache
- pic_init(); // interrupt controller
- ioapic_init(); // another interrupt controller
+ picinit(); // interrupt controller
+ ioapicinit(); // another interrupt controller
kinit(); // physical memory allocator
tvinit(); // trap vectors
fileinit(); // file table
iinit(); // inode cache
- console_init(); // I/O devices & their interrupts
- ide_init(); // disk
+ consoleinit(); // I/O devices & their interrupts
+ ideinit(); // disk
if(!ismp)
- timer_init(); // uniprocessor timer
+ timerinit(); // uniprocessor timer
userinit(); // first user process
bootothers(); // start other processors
@@ -42,8 +42,8 @@ mpmain(void)
{
cprintf("cpu%d: mpmain\n", cpu());
idtinit();
- if(cpu() != mp_bcpu())
- lapic_init(cpu());
+ if(cpu() != mpbcpu())
+ lapicinit(cpu());
setupsegs(0);
xchg(&cpus[cpu()].booted, 1);
@@ -71,7 +71,7 @@ bootothers(void)
stack = kalloc(KSTACKSIZE);
*(void**)(code-4) = stack + KSTACKSIZE;
*(void**)(code-8) = mpmain;
- lapic_startap(c->apicid, (uint)code);
+ lapicstartap(c->apicid, (uint)code);
// Wait for cpu to get through bootstrap.
while(c->booted == 0)