提交 c779cc2b 创建 作者: Robert Morris's avatar Robert Morris

main comments

上级 24118827
...@@ -19,13 +19,13 @@ main(void) ...@@ -19,13 +19,13 @@ main(void)
{ {
kinit1(end, P2V(4*1024*1024)); // phys page allocator kinit1(end, P2V(4*1024*1024)); // phys page allocator
kvmalloc(); // kernel page table kvmalloc(); // kernel page table
mpinit(); // collect info about this machine mpinit(); // detect other processors
lapicinit(); lapicinit(); // interrupt controller
seginit(); // set up segments seginit(); // segment descriptors
cprintf("\ncpu%d: starting xv6\n\n", cpu->id); cprintf("\ncpu%d: starting xv6\n\n", cpu->id);
picinit(); // interrupt controller picinit(); // another interrupt controller
ioapicinit(); // another interrupt controller ioapicinit(); // another interrupt controller
consoleinit(); // I/O devices & their interrupts consoleinit(); // console hardware
uartinit(); // serial port uartinit(); // serial port
pinit(); // process table pinit(); // process table
tvinit(); // trap vectors tvinit(); // trap vectors
...@@ -37,8 +37,7 @@ main(void) ...@@ -37,8 +37,7 @@ main(void)
startothers(); // start other processors startothers(); // start other processors
kinit2(P2V(4*1024*1024), P2V(PHYSTOP)); // must come after startothers() kinit2(P2V(4*1024*1024), P2V(PHYSTOP)); // must come after startothers()
userinit(); // first user process userinit(); // first user process
// Finish setting up this processor in mpmain. mpmain(); // finish this processor's setup
mpmain();
} }
// Other CPUs jump here from entryother.S. // Other CPUs jump here from entryother.S.
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论